PDA

View Full Version : convertLightmap giving me "error"


AtrusDni
07-02-2007, 08:22 PM
Hey guys, im using the following code:

string $Obj = cube;
createNode "textureBakeSet" -n "mybakeset";
setAttr "mybakeset.colorMode" 0;
setAttr "mybakeset.xResolution" 1024;
setAttr "mybakeset.yResolution" 1024;
setAttr "mybakeset.fillTextureSeams" 1;
setAttr "mybakeset.bakeToOneMap" 1;
convertLightmap -bo "mybakeset" initialShadingGroup $Obj;

So i am basically making a bake set to add more custom options to Mental Ray's PreLight function, and then trying to bake out the textures, but it just returns:

error

Nothing else, no descriptive inormation or anything. Any Ideas?

Lamont
07-24-2007, 09:02 PM
This seems to work:

string $Obj = "pCube1";
createNode "textureBakeSet" -n "mybakeset";
setAttr "mybakeset.colorMode" 0;
setAttr "mybakeset.xResolution" 1024;
setAttr "mybakeset.yResolution" 1024;
setAttr "mybakeset.fillTextureSeams" 1;
setAttr "mybakeset.bakeToOneMap" 1;
convertLightmap -bo "mybakeset" initialShadingGroup $Obj;

AtrusDni
07-25-2007, 05:32 PM
Cool thanks for the reply Lamont. I'll give that a shot.

CGTalk Moderation
07-25-2007, 05:32 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.