-
Using Inertial Bounce on Objects in a precomp
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,
oskaramp = .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
}
Sorry, there were no replies found.