Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression error around an array popped up out of nowhere

  • Expression error around an array popped up out of nowhere

    Posted by Paul Connors on November 30, 2020 at 4:03 pm

    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.

    Paul Connors replied 5 years, 5 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy