Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Using Inertial Bounce on Objects in a precomp

  • Using Inertial Bounce on Objects in a precomp

    Posted by Oskar Ziemba on September 3, 2014 at 12:28 pm

    Hello dear Experts,

    i am trying to use the inertial bounce expression on objects in a precomp. The precomp itself is scaled in a master-comp and i want the objects in the precomp to bounce. So my thought was i have to look at the worldcoordinates of the precomp in the master-comp and then apply the inertial bounce in the position of the objects in the precomp. But – you guessed it – i am stumped at how to achieve this. I hope my explanation is sufficient.

    Many thanks,
    oskar

    amp = .1;
    freq = 2.0;
    decay = 2.0;
    n = 0;
    if (numKeys > 0){
    n = nearestKey(time).index;
    if (key(n).time > time){
    n--;
    }}
    if (n == 0){ t = 0;
    }else{
    t = time - key(n).time;
    }
    if (n > 0 && t < 1){
    v = velocityAtTime(key(n).time - thisComp.frameDuration/10);
    value + v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t);
    }else{
    value
    }

    Oskar Ziemba replied 11 years, 11 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

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