-
Trouble with Dan Ebberts Overshoot expression
Hi.
I am really frustrated with this, as I can’t see any logic behind this. I am trying to have my 3D text flip in row by row with some overshoot. Sometimes I get this error though (But not every time):After Effects warning: Syntax error
Expression disabled.Error occurred at line 1.
I get the error most times, but every now and then I manage to export or preview the animation. Does this make any sense to any of you guys?
/André
freq = 2;
decay = 3;
delay = .20;
dur = .13;myDelay = (textIndex-1)*delay;
t = time - (inPoint + myDelay);
startVal = 100;
endVal = 0;if(t < dur){
linear(t,0,dur,startVal,endVal);
}else{
amp = (endVal - startVal)/dur;
w = freq*Math.PI*2;
endVal + amp*(Math.sin(t*w)/Math.exp(decay*t)/w);
}