Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Combine 3 source text layers in 1 source text layer on 3 lines

  • Combine 3 source text layers in 1 source text layer on 3 lines

    Posted by Yvonne Van de kop on August 21, 2021 at 6:25 am

    Hi there,

    Is it possible to combine 3 separate text lines in 1 source text on 3 lines like the screenshot?

    If I do the expression like below it just puts everything in one line.

    Please help

    Yvonne


    Note: Building a template for promo gfx. An other asset must be on one and this title has a specific scripted animation so I need it to be in one text source. If it’s not possible I’ll make 3 separate text layers.

    R1 = comp("24K_Promo_Control").layer("First line").text.sourceText;

    R2 = comp("24K_Promo_Control").layer("second line").text.sourceText;

    R3 = comp("24K_Promo_Control").layer("third line").text.sourceText;

    R1 + //first line

    R2 + // second line

    R3 // third line

    Dan Ebberts replied 5 years ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    August 21, 2021 at 7:17 am

    You just need to add a couple of carriage returns:

    R1 = comp("24K_Promo_Control").layer("First line").text.sourceText;

    R2 = comp("24K_Promo_Control").layer("second line").text.sourceText;

    R3 = comp("24K_Promo_Control").layer("third line").text.sourceText;

    R1 + "\r" + R2 + "\r" + R3

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