Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects Expressions › rtl text expressions

  • rtl text expressions

    Posted by Adi Rosenberg on June 16, 2020 at 1:00 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 < 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);
    }

    Dan Ebberts replied 6 years, 3 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    June 16, 2020 at 6:24 pm

    Try changing this line:

    retard = textIndex*thisComp.frameDuration*1;

    to this:

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

    Dan

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy