Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Combining setFont with variable sourceText

  • Combining setFont with variable sourceText

  • Christopher Rutherford

    September 22, 2021 at 11:44 pm

    I’ve got a dozens of text layers that pull text information from their comp names. I’m also trying to set it up such that half of the text is in one typeface and the other is in another typeface. Currently my expression is as follows

    thisComp.name.split(“-“)[1] + “$” + random (1, 10).toFixed(2)

    Is there a way to set it up such that the thisComp.name.split is in one font and the rest of it is in another? I’d assume I’d need a “var array=” thing in it, but I’m not quite sure how to marry the two expressions.

  • Andrei Popa

    September 23, 2021 at 5:55 am

    It is not possible to set different fonts in a single layer via expressions.

    If the only difference between the fonts is italic/bold/regular, you can try to mimic the look by using a text animator and setting different skew/stroke width for a part of the text.

Viewing 1 - 2 of 2 posts

Log in to reply.

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