Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions bounce expression without having to precomp the layer

  • bounce expression without having to precomp the layer

    Posted by Joe Hamilton on September 23, 2008 at 2:53 pm
    k=100; // final scale
    a=10; // how quickly the bounce ends
    b=20; // how many bounces it'll do (that is, the bounce speed) 
    x=k*(1-Math.exp(-a*time)*Math.cos(b*time));
    [x,x]

    I am doing an animation with many layers bouncing into view at different times.
    I have an expression to do this but it only does it from the first frame of the composition.
    How would i adjust this to make is start at the beginning of the layer?
    or maybe someone knows of another script that will do this.

    thanks!

    Joe Hamilton replied 17 years, 10 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    September 23, 2008 at 3:38 pm

    Like this:

    k=100; // final scale
    a=10; // how quickly the bounce ends
    b=20; // how many bounces it’ll do (that is, the bounce speed)
    t = time – inPoint;
    x=k*(1-Math.exp(-a*t)*Math.cos(b*t));
    [x,x]

    Dan

  • Joe Hamilton

    September 23, 2008 at 4:22 pm

    Great!
    you saved me a lot of work 🙂
    thanks

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