Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Text Style Expressions in AE2020

  • Text Style Expressions in AE2020

  • Mikael Holmström

    November 28, 2019 at 10:16 am

    Hi all,

    I can’t figure out how to make the new text style expressions work in AE 2020 (v17.0.0. Build 557).

    For all I know, they should be placed in the expression field of Source Text of a text layer, right?

    When i write, for instance, “style.setFontSize(100)” in the expression field, I get this error message:

    Error: Property or method named ’style’ in Class ’global’ is missing or does not exist. It may have been renamed, moved, deleted, or the name may have been mistyped.

    What am I doing wrong?

    Best,
    Mikael

  • Andrei Popa

    November 28, 2019 at 12:23 pm

    Try this

    text.sourceText.style.setFontSize(100)

    The style belongs to the ‘sourceText’ Class, not in ‘global’ Class.

    Andrei
    My Envato portfolio.

  • Mikael Holmström

    November 28, 2019 at 2:27 pm

    Thanks.
    Unfortunately it doesn’t work.
    Do I have to activate this features somehow to make it work?
    Other new features, such as dropdown menu expression control works.

  • Dan Ebberts

    November 28, 2019 at 5:34 pm

    Make sure you have File>Project Settings>Expressions set to JavaScript.

    Dan

  • Mikael Holmström

    November 29, 2019 at 7:41 am

    Lovely, now it works.
    Many thanks

Viewing 1 - 5 of 5 posts

Log in to reply.

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