ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Expression to revert tex animation

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Gabriel Silva
Expression to revert tex animation
on Apr 3, 2020 at 1:41:47 pm
Last Edited By Gabriel Silva on Apr 3, 2020 at 1:42:57 pm

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?


Return to posts index

Dan Ebberts
Re: Expression to revert tex animation
on Apr 4, 2020 at 1:46:30 am

I think if you replace textIndex with:

((textTotal - textIndex)+1)

it should go backwards.


Dan



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 CreativeCOW.net All Rights Reserved
[TOP]