[Closed] Rotation Control, MaxScript
Hi Everyone,
I’ve a little problem:
-
I create a new scene and create a simple box.
-
I create a custom parameters with a slider (AutoRotation): 0 to 100.
-
create a new script and add this function:
$CTRL_Rotation.rotation.controller.Z_Rotation.controller = float_script()
$CTRL_Rotation.rotation.controller.Z_Rotation.controller.Available.controller = float_script()
scp = “
veloc = $CTRL_Rotation.modifiers[1].RotControl.AutoRotation
currentTime/TicksPerFrame * veloc”
$CTRL_Rotation.rotation.controller.Z_Rotation.controller[2].script = scp -
After, I create a key on frame 200 (AutoRotation = 50), and a key on frame 400 (AutoRotation = 0)
-
Press Play.
-
Because when he arrives in frame 200 for the 400, it changes the direction of the rotation? I want the rotation in direction the same, however, diminishing the speed.
What I am making of made a mistake?