キーフレーム・アニメーションは以下の手順で作ってゆく。
球を円状にアニメーションさせるMELスクリプト。
global proc circleAnimation1(float $rad, int $frame)
{
float $add = 0.1;
float $r = 0.0;
sphere;
for($i = 0; $i < $frame; $r += $add, $i++)
{
currentTime $i;
$x = $rad * sin($r);
$z = $rad * cos($r);
move $x 0 $z;
setKeyframe;
}
}