PDA

View Full Version : Mental RAY PROC PROBLEM


acc9340
05-09-2007, 03:46 AM
I have a student who wrote the following procedure in MEL (see below). He sources it and it works fine. When he renders the File in Mental Ray it doesnot evaluate. Is there a way to get MR to "see" procedure?

Just asking,

ACC



// Procedure (description):
// move objects according to frame number and current value of translate x;
global proc moveObject()
{
int $frame = `currentTime -q `;
float $time = $frame/24.0;
float $radius = 5.0;
string $dragons[] = `ls "unitGrp|unit*" "unitGrp1|unit*"`;
int $i;
for($i = 0; $i < size($dragons); $i++)
{
//calculate translationZ depending on its translationX
float $tx = `getAttr ($dragons[$i] + ".tx")`;
float $tz = $radius * sin($time*3 + $tx/10);

//move crystal
setAttr ($dragons[$i] + ".tz") $tz;
}
}

moveObject();

CGTalk Moderation
05-09-2007, 03:46 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.