Skip to main content
LW0121
Inspiring
December 29, 2024
Answered

After Effects Linear Expression Error: undefined value used in expression

  • December 29, 2024
  • 1 reply
  • 226 views

Created an expression slider to control an object's scale. I worte this code and have no idea where's wrong.

This topic has been closed for replies.
Correct answer Dan Ebberts

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

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

1 reply

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
December 29, 2024

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

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