ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Text Style Expressions in AE2020

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Mikael Holmström
Text Style Expressions in AE2020
on Nov 28, 2019 at 10:16:09 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


Return to posts index

Andrei Popa
Re: Text Style Expressions in AE2020
on Nov 28, 2019 at 12:23:11 pm

Try this

text.sourceText.style.setFontSize(100)

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

Andrei
My Envato portfolio.


Return to posts index

Mikael Holmström
Re: Text Style Expressions in AE2020
on Nov 28, 2019 at 2:27:59 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.


Return to posts index


Dan Ebberts
Re: Text Style Expressions in AE2020
on Nov 28, 2019 at 5:34:07 pm

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

Dan



Return to posts index

Mikael Holmström
Re: Text Style Expressions in AE2020
on Nov 29, 2019 at 7:41:10 am

Lovely, now it works.
Many thanks


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]