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 3d

  • Dan Ebberts

    March 16, 2007 at 11:34 pm

    Not exactly sure what you’re asking here, but if you want something that springs towards the camera in the z direction, you could try this:

    veloc = 35;
    amplitude = 150;
    decay = 1.0;
    z = amplitude*Math.cos(veloc*time)/Math.exp(decay*time);
    value – [0,0,z]

    Dan

  • David Modijefsky

    March 17, 2007 at 2:28 pm

    Thanx Dan. But that was not what I meand. My jack went from a negative y-value (in the box) to a positive y-value (out the box). I’ve created a new box, smaller and closer to the camera. Problem sorted. But your script alteration for a z-value will come in handy in this project too. Thanx Dan!

  • Filip Vandueren

    March 17, 2007 at 2:36 pm

    A sinewave by definition will allways result in an oscillation between positive and negative 1, this gets multiplied by the amplitude.
    just add a value larger than the amplitude to it to keep it from dipping below 0

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