-
Undefined Value Used In Expression; Require assistance with Start Time Stop If Else Statement Wiggle But Keeping Same Aspect Ratio.
Hello, I am trying to figure out an expression of using a Start and Stop time If Else statement using Wiggle. But I need to maintain the aspect ratio of the wiggle.
I tried to use the following syntax:timeToStart = 6;
timeToStop = 16;
if ((time > timeToStart) && (time < timeToStop))
{ w = wiggle(5,10);
if (value[0]===0){[0, w[1]];}
else{[w[0], w[0]*value[1]/value[0]];};
}But get an error that say Undefined Value used in expression (could be out of range array subscript?) at the
timeToStart = 6;Could anyone help assist me on the correct syntax for this so I do not get this error. This maybe have to do with the update in After Effects 2019.

timeToStart = 6;
timeToStop = 16;
if ((time > timeToStart) && (time < timeToStop))
{ w = wiggle(5,10);
if (value[0]===0){[0, w[1]];}
else{[w[0], w[0]*value[1]/value[0]];};
}