Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions how to animate rotation

  • how to animate rotation

    Posted by Jose Arce on June 23, 2011 at 1:28 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.

    https://vimeo.com/25329849

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

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Vimeo framework” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

    Jose Arce replied 14 years, 10 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    June 23, 2011 at 5:25 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

  • Jose Arce

    June 23, 2011 at 2:36 pm

    Thank you Dan.
    Like always you save my day.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy