- November 25, 2019 at 3:16 pm
Hey ya’ll !
I am trying to create a shape layer path based on a target layer’s position.
createPath(points = myPoints, inTangents = , outTangents = , isClosed = false);
lets me create a path based on an input array (“myPoints”).
I want this array to be dynamic for a lack of a better term ( I am no programmer), i.e. I want to add values to this array and I thought I could use something like this:
tCount = 0; // time counter
tInter = 0.5; // time interval (samples)
myPoints = ; //an empty array to store the path points
The first line in the while loop returns an error ("Undefined value used in expression"). I thought I could add values to an empty array but I guess I'm doing something wrong. Can somebody help me out with this? How DO you add values to an array? Or should I be generating a string inside the "myPoints" array that contains all the points based on a similar while loop?
Any help is greatly appreciated!
- November 25, 2019 at 5:00 pm
The easiest way would be to use push(), like this:
- November 26, 2019 at 7:41 am
YES! works perfectly. Thank you so much Dan!
Log in to reply.