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

After Effects Linear Expression Error: undefined value used in expression

Explorer ,
Dec 29, 2024 Dec 29, 2024

Created an expression slider to control an object's scale. I worte this code and have no idea where's wrong.
Screenshot 2024-12-29 at 11.12.59 AM.png

TOPICS
Error or problem , Expressions , Scripting
210
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 , Dec 29, 2024 Dec 29, 2024

In your second line, replace the square brackets with parens, like this:

var a = linear(x, 0, 100, 0, 60);
Translate
Community Expert ,
Dec 29, 2024 Dec 29, 2024
LATEST

In your second line, replace the square brackets with parens, like this:

var a = linear(x, 0, 100, 0, 60);
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