ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

rtl text expressions

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
adi rosenberg
rtl text expressions
on Jun 16, 2020 at 1:00:35 pm

how do i make this expression work from right to left instead of left to right?

freq = 1.5;
decay = 15;
duration = 0.18;
retard = textIndex*thisComp.frameDuration*1;
t = time - (inPoint + retard);
startVal = [100,100,100];
endVal = [0,0,0];
if (t &lt; 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);
}


Return to posts index

Dan Ebberts
Re: rtl text expressions
on Jun 16, 2020 at 6:24:58 pm

Try changing this line:

retard = textIndex*thisComp.frameDuration*1;

to this:

retard = (textTotal - textIndex + 1)*thisComp.frameDuration;


Dan



Return to posts index

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