-
After Effects: Undefined value used in the expression
<b itemprop=”name”>After Effects: Undefined value used in the expression(Could be out of range array subscript)
I need your help please. Now I am studying the topic “Expressions in After Effects” and I had to create such a scale that would change its color when changing the value, but it gives me such an error. What could be the problem?
I attach the gif, which should turn out
Proplem that I have:
Here’s just a paste of the code if you need it:
x = thisComp.layer(“text”).effect(“Slider Control”)(“Slider”);
if (x<=30){effect(“low”)(“Color”)}
if (x>30&&x<70){effect(“middle”)(“Color”)}
if (x>=70){effect(“high”)(“Color”)}