-
Text Expression Question
I came across this expression under the expression selector under a text layer and when I start offsetting scale, rotation and tracking amount, it has a sort of bouncing effect. I can’t figure out how this works (what these lines mean) and would like to learn about this. Any help is greatly appreciated! Thanks!
freq = 2;
decay = 6;
duration = 0.12;
retard = textIndex*thisComp.frameDuration*1;
t = time – (inPoint + retard);
startVal = [100,100,100];endVal = [0,0,0];
if (t < duration){
linear(t,0,duration,startVal,endVal);
}else{
amp = (endVal – startVal)/duration;
w = freq*Math.PI*2;
endVal + amp*(Math.sin((t-duration)*w)/Math.exp(decay*(t-duration))/w);}