PDA

View Full Version : Rotation Control, MaxScript


hmelo
08-13-2008, 12:48 PM
Hi Everyone,

I've a little problem:

1. I create a new scene and create a simple box.

2. I create a custom parameters with a slider (AutoRotation): 0 to 100.

3. 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

4. After, I create a key on frame 200 (AutoRotation = 50), and a key on frame 400 (AutoRotation = 0)

5. Press Play.

6. 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?

CGTalk Moderation
08-13-2008, 12:48 PM
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.