Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

text.sourceText.style expressions not working

Community Beginner ,
Feb 04, 2025 Feb 04, 2025

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?

TOPICS
Expressions
467
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Feb 04, 2025 Feb 04, 2025

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

Translate
Community Expert ,
Feb 04, 2025 Feb 04, 2025

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 04, 2025 Feb 04, 2025
LATEST

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines