Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Jack in the box in Z axis only

  • Eric Sanderson

    October 27, 2008 at 4:44 pm
    freq = 5;
    amp = 125;
    decay = 3;
    
    z = amp*Math.cos(freq*time*2*Math.PI)/Math.exp(decay*time);
    value + [0,0,z]

    theres a few ways to do it, none any more simple than the other, heres one…and this is assuming your doing a Math.sin or .cos*Math.exp(time) expression for the spring action.

  • Göran Thorén

    October 27, 2008 at 4:56 pm

    Hi Eric and thank´s a million for that solution!
    Even if I can`t keyframe it, it will work great for my needs!

    Do you have a clever suggestion for animating it to? (think of holding an object in your hand and looking down and dropping it)

  • Eric Sanderson

    October 27, 2008 at 4:58 pm

    you shouldnt need a script if you planned on keyframing it.

    So if im understanding you right you dont need so much of a “springy” action as you do just bounce or recoil from something dropping and hitting the ground?

  • Göran Thorén

    October 27, 2008 at 5:09 pm

    What i mean is if I need to drop a lot of objects that way and have it do that springy motion when it lands.
    Another thing. Is there a way to offset your expression so #1, it doesn´t start right away and #2 so the layers doesn´t move in synch?

    Thank´s again!

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