-
Expression error around an array popped up out of nowhere
UPDATE: I’m sorry, it looks like I had a value of “0” for the table1count variable below and when applying the “-1” to that I was getting a negative number for the array lookup and that was causing the error.
—————————————
Hello. I had an expression in place that had been working, but now I get a strange error message: “Property or method named ‘-1’ in Class ‘Array’ is missing or does not exist. …” Here is the expression that had been working fine and the all of a sudden started creating this error:
table1count = parseInt(comp(“MASTER”).layer(“Table1”).text.sourceText,10);
yArr = [300,185,80,50,0];
x = 960;
y = yArr[table1count-1];
[x,y]
Thank you very much.
Sorry, there were no replies found.