Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions how to do this ? epressions maybe?

  • how to do this ? epressions maybe?

    Posted by Jeremy Webb on March 28, 2006 at 4:39 pm

    the effect i am trying to create is this: imagine in the real world a piece of thick paper with a hole in the top and string attached to it so the paper is hanging by the string. then you “wind up” the string by twisting the paper a bunch of times. you let it go, and it spins then slows down then spins the other way. now i could do this with keyframes obviously, but it needs to be applied to a bunch of layers and they need to be spinning for quite a while.

    Mike Clasby replied 20 years, 1 month ago 3 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    March 28, 2006 at 5:21 pm

    You can probably do it with a decaying cosine wave expression for y rotation. Something like this:

    period = 4; //length of one cycle
    revolutions = 3; // revolutions per cycle
    decay = 0.2;

    revolutions*360*Math.cos(time*2*Math.PI/period)/Math.exp(decay*time)

    Increase decay to have it slow down faster.

    Dan

  • Mike Clasby

    March 30, 2006 at 6:56 am

    Sweet expression, thanks.

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