PDA

View Full Version : Rotation Animation Speed Control


ajsfuxor
11-20-2006, 11:53 PM
Hey guys,

I'm trying to rig a cube that has a speed control on the rotateZ axis. I've tried the expression below, but as I turn the custom attribute "pcube.speed" from 1 to 0, the rotate of the cube spins backwards to reset the rotate.Z to zero.


pCube1.rotateZ = (time) * pCube1.speed;


I understand why my expression doesn't work, but i don't know enough MEL to write an expression that controls the speed of the rotation such that the cube slows to a stop, and not rewind back to pCube1.rotateZ = 0.

Thanks in advance.

Mikademius
11-21-2006, 10:01 AM
typoMaybe this can help you get a better understanding when it comes to controlling attributes:)

http://www.final3.com/html/tutorials/sine.htm

CGTalk Moderation
11-21-2006, 10:01 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.