Difference between revisions of "KeyframeRGB MEL"
From scripting
(Created page with " global proc KeyframeRGB(float $RVal, float $GVal, float $BVal, float $TimeVal, string $MatName) { if ($RVal != -1) { setKeyframe -at ("colorR") -v $RVal -t $TimeVal $Mat...") |
(No difference)
|
Latest revision as of 07:09, 22 April 2017
global proc KeyframeRGB(float $RVal, float $GVal, float $BVal, float $TimeVal, string $MatName) { if ($RVal != -1) { setKeyframe -at ("colorR") -v $RVal -t $TimeVal $MatName; } if ($RVal != -1) { setKeyframe -at ("colorG") -v $GVal -t $TimeVal $MatName; } if ($RVal != -1) { setKeyframe -at ("colorB") -v $BVal -t $TimeVal $MatName; } }
More information on attribute keyframing, read pages 119-122 in YSYT.
For information on Maya materials, look at Chapter 12 in YSYT.