ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Text animator different for even/odd lines

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Andrei Popa
Text animator different for even/odd lines
on Sep 10, 2019 at 10:20:26 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.


Return to posts index

Tomas Bumbulevičius
Re: Text animator different for even/odd lines
on Sep 12, 2019 at 7:57:50 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


Return to posts index

Andrei Popa
Re: Text animator different for even/odd lines
on Sep 13, 2019 at 8:24:34 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.


Return to posts index

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