Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Text animator different for even/odd lines

  • Text animator different for even/odd lines

    Posted by Andrei Popa on September 10, 2019 at 10:20 am

    Hey guys. What i am trying to do is a text animator in which each line comes in from different side. Let’s say odd from left and even from right. The is probably an easy way to do this but i just can’t seem to find it.

    Andrei
    My Envato portfolio.

    Andrei Popa replied 6 years, 8 months ago 2 Members · 2 Replies
  • 2 Replies
  • Tomas Bumbulevičius

    September 12, 2019 at 7:57 am

    Hey Andrei, thats an interesting idea.

    1. Do you plan to set Text Animator into lines, or would prefer to detect lines automatically, while applying ‘char or words’ based transformations?
    2. In terms of text – plain text layer, with paragraph of content?

    Find out more:
    After Effects Tutorials: motion design, expressions, scripting.
    Boxer – Dynamic Text Boxes Template with a Live Preview

  • Andrei Popa

    September 13, 2019 at 8:24 am

    Hey. Even though i don’t fully understand the expressions from the text animator(they seem odd to me, compared to the ordinary ones), i came up with this. I am sure it can be somehow simplified, but it ain’t stupid if it works, right?

    I add a text animator for position, set it to aproximately half the width of the comp plus the width of my text layer.
    add expression selector, based on lines, with this expression:

    thisSign = (textIndex%2 == 0) ? 1 : -1;
    dur = 5;
    thisTime = Math.max(framesToTime(dur) - (time-inPoint),0);
    val = linear(thisTime,0,framesToTime(dur),0,1)*100;
    thisSign *val

    I tried to determine a way to make 0-100 within my duration and then i added a + or – sign to make it go the other way.

    Andrei
    My Envato portfolio.

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