-
Expression to revert tex animation
Hello people. I need help. I have the following expressions for animating the text:
####Expression 01####
delay = .05;
myDelay = delay*textIndex;
t = (time – inPoint) – myDelay;
if(t >= 0){
freq = 2;amplitude = 100;
decay = 8.0;
s = amplitude*Math.cos(freq*t*2*Math.PI)/Math.exp(decay*t);
[s,s];
}else{
value
}####Expression 02####
delay = .05;
myInDelay = delay*textIndex;
myOutDelay = delay*(textTotal -textIndex + 1);
tStart = inPoint + myInDelay;
tStop = outPoint – myOutDelay;
if ((time < tStart) || (time > tStop)){
t = 0;
}else{
if (time < (tStart + tStop)/2){
t = time – tStart;
}else{
t = tStop – time;
}
}
freq =2;
amplitude = 100;
decay = 8.0;
s = amplitude*Math.cos(freq*t*2*Math.PI)/Math.exp(decay*t);
[s,s]And I would like that instead of animating by reading order he would animate backwards.
Can you help me?