Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects Expressions › Text changes to the text of the next text line

  • Text changes to the text of the next text line

    Posted by Daniel Schmidt on November 30, 2021 at 1:13 pm

    Hello,

    I want a text layer to change its text every frame, showing the text from the next text line, then the next line etc…

    The text layer contains a few hundred text lines. So basically:

    Text Layer shows at frame 1: Text from Line 1

    Text Layer shows at frame 2: Text from Line 2

    and so on….

     

    Thanks a lot for any help 🙂

    Daniel Schmidt replied 4 years, 10 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    November 30, 2021 at 4:39 pm

    Something like this maybe:

    txt = value.split("\r");

    f = timeToFrames(time);

    idx = Math.min(f,txt.length-1);

    txt[idx]

  • Daniel Schmidt

    November 30, 2021 at 5:26 pm

    Thank you, Dan!

    It works perfectly

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