Activity › Forums › Adobe After Effects Expressions › Rotation Expression needed.
-
Rotation Expression needed.
Posted by Tcelos on August 3, 2006 at 4:03 pmHi all,
I need an expression to make an object spin on its axis and slowly come to a stop. I tried searching, but no luck.
Can anyone help?los
Mike Clasby replied 20 years ago 3 Members · 3 Replies -
3 Replies
-
Steve Roberts
August 3, 2006 at 4:07 pmJust use keyframes. Set the first keyframes to the number of times that the layer is rotated, then set the second keyframe to zero. Right-click (ctrl-click on mac) on the second keyframe and select “ease in”.
If you want to fine-tune that, look in the help to see how to adjust value graphs, probably under “fine-tuning animation”.
-
Tcelos
August 3, 2006 at 4:22 pmI tried that, and it doesnt look organic enough. I will keep playing with it and still search for any expressions.
Thanks.los
-
Mike Clasby
August 3, 2006 at 4:44 pmThis oldie but goodie from Dan.
exponential curve between two key frames, so set two keyframes.Name: Dan Ebberts
Date: Nov 16, 2004 at 12:58:36 pm
Subject: Re: Expression for exponential scaleThis should give you an exponential curve between two key frames:
if (numKeys > 1){
v1 = key(1).value;
v2 = key(2).value;
t1 = key(1).time;
t2 = key(2).time;
if (time > t1 && time < t2){ t = time - t1; T = t2 - t1; k = Math.log(v2/v1)/T; v1*Math.exp(k*t) }else{ value } }else{ value } Dan ----------------------------- yikes, again Note for rotation this expression doesn't like "0", you get the old "After Effects Warning: Invalid numeric result (divide by zero)." So insead of zero, use "0 rotations, .01 degrees" or start at 1 rotation and go to 5 rotations, etc.
Reply to this Discussion! Login or Sign Up