retreive path points of a shape
Hello
I have a shape layer with only one path. I would like to retreive the points of the path
My layer :
“Arrow”
|_Content
|_”CArrow”
|_”CPath”
|_Path
My code
comp=app.project.activeItem;
shape=comp.layer("Arrow");
//I try these two possibilities
sPath=shape.content("CArrow").content("CPath");
sPath=shape.content("CArrow").content("CPath").path;
//I also try these two possibilities
sPoints=sPath.points(); //I got an error
sPoints=sPath.points; //I got “undefined”
I don’t understand where is my error. Could someone explain how to retreive points coordinates ?
