Skip to main content
Participant
February 4, 2025
Answered

text.sourceText.style expressions not working

  • February 4, 2025
  • 1 reply
  • 539 views

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?

Correct answer Dan Ebberts

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

1 reply

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
February 4, 2025

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

Participant
February 5, 2025

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!