Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Array piece can’t expand to more than 1 value

  • Array piece can’t expand to more than 1 value

    Posted by Ed Steadman on September 20, 2019 at 9:34 am

    Looking for some help with an expression which isn’t working for me but I can’t figure out why.

    I’m try to get a shape to be created between the position of three nulls.

    However I keep getting this error:

    “Array piece can’t expand to more than 1 value”

    My understanding of this error is that something in square brackets is returning more values than it should. However the create paths expression should be looking for two values, an X and a Y, and my variables should be returning two values.

    var a = thisComp.layer("Null31").transform.position;
    var b = thisComp.layer("Null32").transform.position;
    var c = thisComp.layer("Null33").transform.position;

    createPath(points = [[a],[b],[c]], isClosed = true)

    Andrei Popa replied 6 years, 11 months ago 2 Members · 1 Reply
  • 1 Reply
  • Andrei Popa

    September 21, 2019 at 7:56 am

    createPath(points = [a,b,c], isClosed = true)

    Andrei
    My Envato portfolio.

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