Inertial bounce multiple times on the same property?
What I'm trying to do is basically move, bounce, move, bounce, etc
I don't want to use multiple nulls with the expression added to control separate bounces.
So, I'm trying to learn how to trigger this at a certain time instead of the last keyframe.
So far no matter where I've searched, no one seems to talk about how to trigger this at a certain time, stop it and run it again at the indicated time.
If anyone could help me understand how to do this it would be greatly appreciated.
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);
amp = .05;
freq = 4.0;
decay = 8.0;
value + v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t);
}else{
value;
}
