Skip to main content
Participant
Feb 4, 2025 9:29 PM UTC
Answered

text.sourceText.style expressions not working

Using After Effects 25.1. Linking the FontSize to a Slider using the expression:

 

"text.sourceText.style.setFontSize(effect("Slider Control")("Slider"))"

 

But I'm getting an expression error reading:

 

"Error: property or method name 'style' in Class 'TextProperty' is missing or does not exist. It may have been renamed, moved, deleted, or the name may have been mistyped"

 

All of the expressions are still auto suggesting with the Expression Language dropdown menu. As I start typing "style" after "sourceText" it starts to autofill. Why is "style" gone all of a sudden? How is After Effects not being able to reference it even though it's showing up in the dropdown menu?

Dan Ebberts
Dan EbbertsCorrect answer
Community Expert
Feb 4, 2025 9:40 PM UTC

My guess is that you have the expressions engine set to Legacy ExtendScript in your project settings.

3 replies

creat11vedirector
Participant
Jun 11, 2026 9:56 PM UTC

There sis a plugin for this: https://promptymac.gumroad.com/l/stylelink

Translate
Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
Feb 4, 2025 9:40 PM UTC

My guess is that you have the expressions engine set to Legacy ExtendScript in your project settings.

Translate
Participant
Feb 5, 2025 3:12 AM UTC

OMG. I'm so embarassed that it was the project setting. But I'm also amazed that I got such a rapid response from the legend. Thank you for everything Dan!

Translate