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

After Effects Linear Expression Error: undefined value used in expression

Explorer ,
Dec 29, 2024 Dec 29, 2024

Copy link to clipboard

Copied

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

Views

35

Translate

Translate

Report

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);

Votes

Translate

Translate
Community Expert ,
Dec 29, 2024 Dec 29, 2024

Copy link to clipboard

Copied

LATEST

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

var a = linear(x, 0, 100, 0, 60);

Votes

Translate

Translate

Report

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