Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Different styles for different lines on same layer

  • Different styles for different lines on same layer

    Posted by Mackie John on December 6, 2020 at 3:59 am

    I want to use expressions to apply a different style (font,size,color) to the second line of the same text layer, and the first line should maintain a different style. Is there a way to achieve this using expressions.

    I have tried the below but doesn’t seem to work

    display = splits[0] + “\r”;

    b = thisComp.layer(“Test”).text.sourceText.getStyleAt(0); // getting style from another layer

    style = b;

    style.setText(display); // applying style to the display variable which contains some text

    finals = display + splits[1]; // adding text to the second line

    finals // applying the final text to this text layer.

    The above is get a the style font, color etc from another layer apply it to the first line of this layer, but unfortunately this doesn’t seem to work

    Mackie John replied 5 years, 4 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

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