ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Change text style as well as text content by expressions

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Mikael Holmström
Change text style as well as text content by expressions
on Mar 16, 2020 at 9:06:19 am

Hi all,
I'd like to change text styles (font size for instance) as well as the text itself by an expression in the sourceText property of a text layer. I assume it should look something like the code below. Doesn't work. What am I doing wrong?
Thanks
//Mikael

"My text".style.setFontSize(100)


Return to posts index

Andrei Popa
Re: Change text style as well as text content by expressions
on Mar 16, 2020 at 9:31:02 am

I think is something like this:

style.setFontSize(100).setText("My text");


For more information check https://helpx.adobe.com/after-effects/using/expressions-text-properties.htm...

Andrei
My Envato portfolio.


Return to posts index

Mikael Holmström
Re: Change text style as well as text content by expressions
on Mar 16, 2020 at 9:33:04 am

Thanks, Andrei!
Mikael


Return to posts index

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