Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Decaying Falling Leaf

  • Decaying Falling Leaf

    Posted by John Madison on August 29, 2010 at 2:10 pm

    Hi all,

    I’ve been going through the posts and others on different forums for an expression that will do the following.

    I am trying to animate a single falling leaf. The idea is that it would fall slowly (almost like floating) rocking side to said, but the rocking eases to a full stop when the leaf hits the floor – which about half way down the screen.

    I’ve seen these two expression either here or on another forum. One is for a floating fall, the other for a pendulum. I’m thinking what i need is something that mixes the two:

    Position
    sp=1;
    amp=200;
    gravity = 10;
    x = Math.sin(time*sp)*amp;
    y= time*time*gravity;
    value + [x,y];

    Rotation
    sp=1;
    amp=5;
    x = Math.sin(time*sp)*amp;
    value - x;

    Here is a pendulum effect:

    veloc = 7;
    amplitude = 80;
    decay = .7;

    amplitude*Math.sin(veloc*time)/Math.exp(decay*time)

    Kevin Camp replied 15 years, 8 months ago 2 Members · 1 Reply
  • 1 Reply
  • Kevin Camp

    August 30, 2010 at 1:15 pm

    to get precise control over when the leaf will stop, i think i’d try manually keyframing this…

    if you set set the anchor point of the leaf to be above the leaf (rather than the default center), then you can generate the side-to-side movement with rotation keyframes and easy-ease. the higher the anchor point the broader the side-to-side movement.

    then just animate the y position of the leaf with ease-ease on the last keyframe.

    Kevin Camp
    Senior Designer
    KCPQ, KMYQ & KRCW

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