I baked a texture to an object. but when I try to bake another texture to another object it bakes the previous object until I unload the reference, then it works.
Can you post what's logged in the script editor?
For example:
select -r pCube1 ; # [mtoa] Render to Texture : Rendering polymesh pCubeShape1 # [mtoa] Render to Texture : Rendered to C:/Users/blairs/Documents/maya/projects/default/images/bake/pCubeShape1.exr select -r pCube1 ; # [mtoa] Render to Texture : Rendering polymesh pCubeShape1 # # [mtoa] Render to Texture : Rendered to C:/Users/blairs/Documents/maya/projects/default/images/bake/pCubeShape1.exr #
select -r Cube ;
select -cl ;
select -r Cube ;
# [mtoa] Render to Texture : Rendering polymesh CubeShape
# [mtoa] Render to Texture : Rendered to D:/Pro/Pregnancy/sourceimages/baketest/CubeShape.exr
Can you reproduce the problem? First bake one object, then the other.
Then we should have two sets of messages in the script editor
when the reference is loaded I get this (unexpected),when the reference (the baby model) is unloaded I get this, (expected)
its using the uvs of the correct model but its baaking the wrong texture. those are not the correct uv's for the baby.
select -r Cube ;
select -r RenderCamera ;
select -r week40_master_body ;
# [mtoa] Render to Texture : Rendering polymesh week40_master_bodyShape
# [mtoa] Render to Texture : Rendered to D:/Pro/Pregnancy/sourceimages/baketest/week40_master_bodyShape.exr
select -r Cube ;
# [mtoa] Render to Texture : Rendering polymesh CubeShape
# [mtoa] Render to Texture : Rendered to D:/Pro/Pregnancy/sourceimages/baketest/CubeShape.exr
first I get this (expected)
then I get this (unexpected)