Forums › Adobe After Effects Expressions › Expression to revert tex animation
Expression to revert tex animation
Gabriel Silva
April 3, 2020 at 1:41 pmHello 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?Dan Ebberts
April 4, 2020 at 1:46 amI think if you replace textIndex with:
((textTotal – textIndex)+1)
it should go backwards.
Dan
Log in to reply.