Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Modifying Dan Ebberts’ Leaf Falling Expression

  • Modifying Dan Ebberts’ Leaf Falling Expression

    Posted by Jey Kumar on January 17, 2012 at 6:50 am

    Hi, I’m new to After Effects and this is the first expression I’ve tried using. I’m trying to have some photos float down and I found this on expression on Google. However. this makes the photos float from top to bottom. I want it as though it was a bird’s eye view. Basically the background is a table and the pictures are falling from above, floating through the air and finally resting on the surface.

    I’ve made all the layers 3D and I’ve tried playing around with their orientation but I can’t get it to work. I thought that perhaps changing “yVelocity” to “zVelocity” might do the trick but it doesn’t.

    Any help is much appreciated 🙂

    https://www.aenhancers.com/viewtopic.php?t=8

    POSITION:

    yVelocity = 200; //pixels per second
    oscFreq = 1.5; //oscillations per second
    oscDepth = 35; //oscillation depth (pixels)
    drift = 25; // drift (wind?) (pixels per second: - = left, + = right)

    value + [oscDepth*Math.sin(oscFreq*Math.PI*2*time) + drift *time,
    yVelocity*time,0]

    Z ROTATION:

    seed_random(index,true);
    random(360);

    Y ROTATION:

    oscFreq = 1.5;
    maxTilt = 15; //degrees

    maxTilt*Math.cos(oscFreq*Math.PI*2*time)

    Jey Kumar replied 14 years, 3 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    January 17, 2012 at 2:46 pm

    You’d need to swap the y and z components, like this:

    value + [oscDepth*Math.sin(oscFreq*Math.PI*2*time) + drift *time,0,yVelocity*time]

    This wasn’t designed to look convincing from the top though. It would need a lot of work.

    Dan

  • Jey Kumar

    January 21, 2012 at 2:56 am

    Thanks for replying. I tried what you said and you were correct; doesn’t look too convincing. Any other suggestions? (Doesn’t have to be this expression) Thanks.

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