-
Give me the way to reverse Expresstion
freq = 1;
decay = 8;
duration = 0.25;
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);
}delay = .05;
myDelay = delay*textIndex;
t = (time – inPoint) + myDelay;
if (t >= 0){
freq =10;
amplitude = 100;
decay = 2;
s = amplitude*Math.cos(freq*t*0.1*Math.PI)/Math.exp(decay*t);
[s,s]
}else{
value
}