Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Change Font Style after specific character.

  • Change Font Style after specific character.

    Posted by Christopher Hegenberg on May 18, 2021 at 10:06 pm

    hi,

    i would like to either split text into different variables

    a = text.sourceText.split(“*”)[0];

    b = text.sourceText.split(“*”)[1];

    a+b;


    and change the font style for each

    or

    change the font style everytime a certain character appears.
    i dont seems to get the syntax right for the split and have no idea how to deal with the sourceText in an if condition. (text.sourceText == “x” doesnt seem to work.)

    any ideas?

    thanks so much,
    chris

    Kevin Camp replied 5 years, 2 months ago 2 Members · 1 Reply
  • 1 Reply
  • Kevin Camp

    May 18, 2021 at 10:14 pm

    I don’t believe you can change the font to more than one font within a single text layer using expressions.

    You might be able to use the expression on two text layers, split the text and show the first split on one text layer and the second split on the other.

    The use sourceRectAtTime() to have the second layer follow the right edge of the first.

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