How create freeform paths shape using script?
Hi
I want to create a shape in which i add multiple points
i try using GraphicLine but it add no path point in this
var myGraphicLine = myPage.graphicLines.add();
myGraphicLine.paths.item(0).pathPoints.item(0).anchor = [72, 72];
myGraphicLine.paths.item(0).pathPoints.item(1).anchor = [72, 144];
myGraphicLine.paths.add();
myGraphicLine.paths.item(1).pathPoints.item(0).anchor = [72, 144];
myGraphicLine.paths.item(1).pathPoints.item(1).anchor = [90, 100];
myGraphicLine.paths.add();
myGraphicLine.paths.item(1).pathPoints.item(0).anchor = [90, 100];
myGraphicLine.paths.item(1).pathPoints.item(1).anchor = [110, 144];
myGraphicLine.paths.add();
myGraphicLine.paths.item(1).pathPoints.item(0).anchor = [110, 144];
myGraphicLine.paths.item(1).pathPoints.item(1).anchor = [144, 72];
I want to create a W type shape using script.
How create a freeform paths type shape (like those drawn with the Pencil or Pen tools) using js ?
Thanks