PDA

View Full Version : expressions ignored when batch rendering (MR)


dacct
07-01-2007, 05:40 AM
The two expressions bellow work fine within Maya GUI's however they are ignored when batch rendering (MR). Any idea what causes this and how to fix it? Or any other way to achieve the same result (the 2nd expression will work when setting keys)?

The 1st expression switches the IBL file texture:

if (frame >= 1)
applyPresetToNode "|mentalrayIbl1|mentalrayIblShape1" "" "" "mentalrayIblShape11" 1;
if (frame >= 3)
applyPresetToNode "|mentalrayIbl1|mentalrayIblShape1" "" "" "mentalrayIblShape12" 1;

The 2nd sets the intensity of the IBL environment:

if (frame == 1)
setAttr "mentalrayIblShape1.colorGain" -type double3 1 1 1 ;
if (frame == 2)
setAttr "mentalrayIblShape1.colorGain" -type double3 0.5 0.5 0.5 ;
if (frame == 3)
setAttr "mentalrayIblShape1.colorGain" -type double3 1 1 1 ;
if (frame == 4)
setAttr "mentalrayIblShape1.colorGain" -type double3 0.5 0.5 0.5 ;

CGTalk Moderation
07-01-2007, 05:40 AM
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.