hello everyone i have after effects cc and windows 8.
when i was on ae cs6 i used this expression and it worked perfectly
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){
v = velocityAtTime(key(n).time - thisComp.frameDuration/10);
amp = 5;
freq = 1.0;
decay = 5.0;
value + (v/100)*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t);
}else{
value;
}
now on ae cc it works for 1 minute and then this error pops up: (in this case i applied the expression on the position of a null object with linear velocity)
After Effects warning: an expression was disabled as a result of an error.
Error at line 19 'Position' of layer 2 ('Null 7') in comp 'Comp 4'.
invalid numeric result (divide by zero?)
how can i fix this error? that expression was very very helpful!
thx!