Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Floating expression

  • Filip Vandueren

    June 25, 2007 at 8:44 pm

    This could be a starting point, but it will be nicer to animate it by hand so it gets a bit more random.
    I’m assuming 2D layers:

    position:

    sp=2;
    amp=150;
    gravity = 50;
    x = Math.sin(time*sp)*amp;
    y= time*time*gravity;
    value + [x,y];

    rotation:

    sp=2;
    amp=5;
    x = Math.sin(time*sp)*amp;
    value – x;

  • Lord Scales

    June 26, 2007 at 12:01 am

    Simple and amazing expression! I was needing something like this also.

  • Mike Clasby

    June 27, 2007 at 2:02 am

    Here’s an old Dan Expression for what you want:

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

  • Mark Bellsmith

    March 26, 2010 at 5:55 pm

    Wow – this is great!

    I need to modify it slightly for a project. I have many objects falling, so I need to introduce some element of randomness to the mix so the objects are not all moving the same. In addition, I need the items to be “blowing” to the side as they fall, so I need to introduce some lateral movement. Can anyone give me a hand? Thanks!!!

  • Paulo Presotto

    April 8, 2010 at 6:43 am

    I just start learning AE , and am now trying a little more fancy effects . I am trying to make this floating effect works on a layer imported from photoshop . Then I found this post saying

    position:

    sp=2;
    amp=150;
    gravity = 50;
    x = Math.sin(time*sp)*amp;
    y= time*time*gravity;
    value + [x,y];

    rotation:

    sp=2;
    amp=5;
    x = Math.sin(time*sp)*amp;
    value – x;

    But I have no idea where to go to change these parameters , since when I open the position and rotation menu under the layer , there’s none of this options . Sorry if this sounds a little stupid , but where are these commands ?

  • Arden Hamrick

    April 27, 2010 at 9:29 pm

    All you have to do is Option/Alt click the stop watch that is right beside “Position” or “Rotation” under transform, and adjust the parameters to your liking. =)

  • John Madison

    August 29, 2010 at 1:29 pm

    Hey,

    This is pretty cool, but i was wondering if a few extra things can be done.
    I am looking for an expression that will animate the falling leaf and then slow the movement down until the leaf finally falls to the floor (which is about half way down the screen). Is there anyway to control the length of this animation. I know i’m asking for a lot, but any help would be appreciated.

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