-
Setting path vertices using scripting
I’d like to spawn shape objects with small variations in the shape vertex positions.
I seem to be able to get a handle to a shape’s vertices but not sure how to set the values for individual vertices.
Can anyone offer suggestions??
shapeLayerContents=nodeLayer.property(2);
shape.property(2).property(1)
pathVerticies=shape.property(2).value.vertices
verticiesCount=pathVerticies.length
for(var i = 0 ; i < verticiesCount;i++){
v=pathVerticies[I]
pathVerticies[0]=[10,10]
}
Thanks
Andy