Forums › Adobe After Effects Expressions › TEXT SELECTOR EXPRESSIONS (select characters one by one and do the same thing to them)
TEXT SELECTOR EXPRESSIONS (select characters one by one and do the same thing to them)
Patrick Traile
February 24, 2020 at 9:54 pmHi, I’m looking for a simple solution to using expression selectors to select each letter one by one and do the same thing to each of them sequentially. This is to further my knowledge of selector expressions and how to use textIndex. Thanks in advance.
Dan Ebberts
February 24, 2020 at 10:27 pmThis simple example should select each character in sequence, starting at one second:
textIndex == Math.floor(time) ? 100 : 0
and apply the max amount of the Animator property to the selected character.
Dan
Patrick Traile
February 25, 2020 at 12:47 amHi Dan, thanks much this did work, however, I have it on the scale property and once the frame is no longer equal to the index number, the character is no longer affected by the expression selector, so it doesn’t stay scaled, it reverts back to the original scale. How would you solve this in the expression?
Dan Ebberts
February 25, 2020 at 12:50 amJust change it to this:
textIndex <= Math.floor(time) ? 100 : 0
Dan
Patrick Traile
February 25, 2020 at 12:58 amThanks again Dan, the transition is very rigid from letter to letter, how can I smooth this out and make it interpolate in transition from letter to letter? Is using something like linear() the best way? how would you do this? I’m looking to build up an arsenal of techniques to do custom text animations using purely expressions!
Dan Ebberts
February 25, 2020 at 1:20 amSomething like this maybe:
linear(time,textIndex-.25,textIndex,0,100)
Dan
Patrick Traile
February 25, 2020 at 1:48 amThis is Awesome Dan, Thank you very much!
Log in to reply.