Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Custom Arrays on certain properties problems

  • Custom Arrays on certain properties problems

    Posted by Alex Mann on September 2, 2013 at 3:52 pm

    Hi there,

    A bit confused with the error message I get when trying to write expressions for certain properties (in this case ‘Position’).

    Starting out with something like:

    myArray = [5,6,7,8];

    returns an error:

    “expression result must be of dimension 2, not 4 Expression disabled.”

    Whilst I get that 2D position in After Effects is [x,y], I don’t understand why I can’t define my own array as part of the expression.

    Thanks in advance 🙂

    Alex Mann replied 12 years, 11 months ago 2 Members · 2 Replies
  • 2 Replies
  • Todd Kopriva

    September 2, 2013 at 4:20 pm

    You can define your own arrays all you want, but the expression still needs to evaluate to a value that has the correct dimensions for the property that it’s on.

    ———————————————————————————————————
    Todd Kopriva, Adobe Systems Incorporated
    After Effects quality engineering
    After Effects team blog
    ———————————————————————————————————

  • Alex Mann

    September 2, 2013 at 4:29 pm

    Thanks Todd,

    Just this minute discovered the same thing myself. Basically writing an array and nothing else, so the expression had nothing to evaluate to. Duh 🙁

    Cheers though

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