Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Scale/Gravity Expression – One more time!

  • Scale/Gravity Expression – One more time!

    Posted by Arnoho on November 9, 2005 at 7:58 am

    Hello all,

    Thanks for the commnunity help spirit going on here!

    I have been working on the famous Scale/Gravity expression from Dan but I can’t manage to get a specific gravity/bouncing effect I need. Let me explain:

    I have two small video layers, one on top of another in a simple 2D environment where the laws of gravity apply. Therefore if I pull the one at the bottom, the top one is supposed to fall on the ground.

    In each video layer there is a character.

    What happens is that the layer on the bottom is pushed to the right
    (the character inside this video pretends to “push” his own layer to the right)
    Consenquently the layer on top is supposed to progressively tilt to the left, before sliding to the left, falling on the floor and bouncing a little before stabilizing.

    It’s important that this layer ends up on its bottom side, that’s why I make it slide before the actual fall, instead of simply tilting and tiping over.

    Dan’s expression is perfect for a straight flat falling and bouncing on it’s bottom side.
    But since my layer is falling tilted and with some velocity (from the slide) it’s a little more complex.

    I need to make variabales so that this layer land tilted on a corner, bounce a little and stabalize flat on the bottom.

    Thank you in advance for your help and suggestions,

    Arnaud/Arnoho

    Arnoho replied 19 years, 5 months ago 2 Members · 2 Replies
  • 2 Replies
  • Mike Clasby

    November 9, 2005 at 6:54 pm

    This is probably not what you want to hear, and definitely not the most elegant, but you can change rotation with keyframes through the animation even though position is controlled by an expression. One big fat expression for all would be very nice, but you could make it work with keyframes added on.

  • Arnoho

    November 10, 2005 at 5:22 am

    Thank you Yikes,

    You’re definitely right, it’s what I was afraid to hear…
    I tried keyframing and no matter how much efforts I put into that it never
    ends up looking natural.

    The trick to get the expression working is to add a variable for the bottom “corners” of the layer that would allow it to rebound on different angles, not just on the vertical axis.
    Then the stabilization will happen automatically in the same way it happens in the regular expression that Dan wrote.

    I just thought that somebody must have run into the same kind of problem.

    Arnoho

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