Hmmmm…when I’m trying this fantastic expressions, I found another issue. Why won’t it work with an overshoot expression? I don’t see any conflict in these 2 script. Haven’t sorted that out. I’d be really appreciated if you may have time to point me to the right direction.
I have pasted the overshoot expression I’m using on the same property together with the above one Dan has written.
Thanks!
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 = .1;
freq = 2.0;
decay = 5.0;
value + v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t);
}else{
value;
}