FORUMS: list search recent posts

how to animate rotation

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Jose Arce
how to animate rotation
on Jun 23, 2011 at 1:28:40 am

Hi, I want to know if there any kind of expresion to animate the rotation in 3d space like a jack in the box, I mean, with a decay at the end of the move, for example start from 0 degrees to 90 degrees and stay move. Sorry my english.

Here a reference.



I can made by hand (keyframes), but I need to do something similar to this.


Return to posts index

Dan Ebberts
Re: how to animate rotation
on Jun 23, 2011 at 5:25:28 am

Keyframe your 90 degree x rotation to occur over a few frames and add this expression:


if (numKeys > 1 && time > key(2).time){
t = time - key(2).time;
amp = velocityAtTime(key(2).time - .001);
freq = 2;
decay = 3;
w = freq*Math.PI*2;
value + amp* Math.sin(t*w)/Math.exp(decay*t)/w
}else
value


Play around with the freq and decay parameters and the timing of the keyframes.

Dan



Return to posts index

Jose Arce
Re: how to animate rotation
on Jun 23, 2011 at 2:36:45 pm

Thank you Dan.
Like always you save my day.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]