Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Error on two-dimensional expression

  • Error on two-dimensional expression

    Posted by Navarro Parker on August 20, 2014 at 5:23 pm

    I have a 2D Point Control and I’m getting an error when using this expression:

    temp = time*100;
    [value[0], temp[1]]

    or

    temp = time*100;
    value + temp[1]

    There’s something very basic with the syntax I’m not understanding here.

    Dan Ebberts replied 12 years ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    August 20, 2014 at 5:40 pm

    This is what you want:

    temp = time*100;
    [value[0], temp]

    Dan

  • Navarro Parker

    August 20, 2014 at 8:14 pm

    Why does the Y value not need an array identifier “[1]” ?

  • Dan Ebberts

    August 20, 2014 at 8:19 pm

    Because temp is not an array. value is an array, so if you’re only going to use one component of the array (the x component, in this case), you need to specify which component.

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