Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Advanced text range selector

  • Advanced text range selector

    Posted by Ter Ber on June 23, 2021 at 2:50 pm

    I’m setting up a AEProject – MOGRT for a lower third with “name”.
    What I can’t figure out is how to animate and make visible only the first letters of each word separately. Lets say “Louis Armstrong” will only animate “L” and then “A”.
    After a few seconds I will animate and make all the characters visible one by one.

    I can’t combine the different “range selectors” the way I want.

    Does anyone have a pointer?

    Thank you!

    Ter Ber replied 3 years, 4 months ago 2 Members · 2 Replies
  • 2 Replies
  • Kevin Camp

    June 23, 2021 at 11:14 pm

    since you need control over 3 components, you’ll need 3 animators.

    add the first animator for opacity, this will be for the first letter. set the animator’s opacity to zero and then add an expression selector and paste this expression into the expression selector’s amount expression:

    if ( textIndex == 1 ) { a = 0 } else { a = 100 }
    [ a, a, a ]

    to get the first letter of the second word, you can duplicate that animator, set the opacity to 100 (since the first animator set it to 0, this one will set it back to 100) and then use this expression in the expression selector:

    txt = text.sourceText ;
    wrd = txt.split(' ') ;
    if ( textIndex == wrd[0].length + 2 ) { a = 100 } else { a = 0 }
    [ a, a, a ]

    now both first letters should be visible. To animate those, simply animate the opacity property of the those animators.

    to get the rest of the letters to reveal, create another animator for opacity, set the opacity to 100, animate the offset property to reveal letters and set the Mode to Subtract.

  • Ter Ber

    January 6, 2023 at 3:34 pm

    Better late than never, Kevin. I actually used your input in the project all this time ago. But I forgot to credit and thank you. So….Thank You, Kevin. Your post was very useful 😊👍

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