Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions scale bounce in 3d layer

  • scale bounce in 3d layer

    Posted by Jose Arce on March 14, 2013 at 2:14 pm

    Hi,

    How to create a bounce effect in 3d layer. I can do it in 2D layer with this expression from Dan Ebbert. But the same expression don’t work in 3D. PLease help

    n = 0;
    if (marker.numKeys > 0){
    n = marker.nearestKey(time).index;
    if (marker.key(n).time > time){
    n--;
    }
    }

    if (n == 0){
    value;
    }else{
    maxDev = 20; // max deviation in pixels
    spd = 10; //speed of oscillation
    decay = 10,0; //how fast it slows down

    t = time - marker.key(n).time ;
    x = scale[0] + maxDev*Math.sin(spd*t)/Math.exp(decay*t);
    y = x;

    [x,y]

    }

    Jose Arce replied 13 years, 2 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    March 14, 2013 at 5:19 pm

    It works for me. In what way is it not working for you?

    Dan

  • Jose Arce

    March 14, 2013 at 5:45 pm

    I apply the expression in a single 3D layer, No Pre compose. and don’t work.

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