-
Motion script realistic bounce and overshot
Hi guys,
Thanks to read my post.
I am new on expressions. I am working with the website motion script.com, on the chapter realistic bounce and overshot when I write the following expression on the scale propriety:
freq = 3;
decay = 5;t = time – inPoint;
startVal = [0,0];
endVal = [200,200];
dur = 0.1;
if (t < dur){
linear(t,0,dur,startVal,endVal);
}else{
amp = (endVal – startVal)/dur;
w = freq*Math.PI*2;
endVal + amp*(Math.sin((t-dur)*w)/Math.exp(decay*(t-dur))/w);
}An error message arrive:
After effects warning: expected:]
error occurred on ligne 5.If you have some advices it ll be so kind.
Thanks