Skip to main content
LW0121
Inspiring
Dec 29, 2024 4:20 PM UTC
Answered

After Effects Linear Expression Error: undefined value used in expression

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

This topic is closed to new replies. Start a new post to keep the conversation going.
Dan Ebberts
Dan EbbertsCorrect answer
Community Expert
Dec 29, 2024 4:47 PM UTC

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
Dec 29, 2024 4:47 PM UTC

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

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