- January 18, 2021 at 8:51 pm
I’m looking for a way to isolate individual lines of text inside a multi-line textfield so each line is animated separately.
I have an input field where the client can enter text on a single layer, with multiple carriage returns. For example: if a block of text that has 4 lines, I would like the 4 lines to animate on separately (offset in time).
One way I was thinking is having 4 identical text layers each copying sourceText from the input field (4 is the maximum lines my project can accommodate), each with one line visible using range selector controlled by Expressions. Then I can use keyframes to animate each line separately.
So if this method is sound, then I would like to learn a way to set the Start and End of each Range Selector as such: 0-the 1st ‘/r’, 1st ‘/r’- 2nd ‘/r’… and so on.
Thank you so much for your time, this forum has saved my butt more times than I can count.
- January 19, 2021 at 11:28 am
Your idea of using 4 layers is indeed the simplest approach.
Those layers can just all reference 1 sourceText via the pickwhip.
Then you can add an extra animator with Opacity=0;
The Range should be set up like this:
- Range Selector:
- Start: 0
- End: 1
(and 1/2, 3/4, 4/5 for subsequent layers)
- Units: Index
- Based On: Lines
- Mode: Subtract
That will hide the other lines, and you can add the rest of the animators after that.
Log in to reply.