08.08.14, 15:24
I'd like to select a single anchor point,
and then have a script retrieve its coordinates.
Is this possible with Scriptographer?
Here is a regular javascript example
that adds an octagon to the selected anchor point.
var aDoc = app.activeDocument;
var sPath = aDoc.pathItems[0];
var sel = sPath.selectedPathPoints;
for (i=0; i<sel.length; i++) {
var pp = sel[i];
if (pp.selected == PathPointSelection.ANCHORPOINT)
var aOctagon = aDoc.pathItems.polygon(pp.anchor[0], pp.anchor[1], 15, 8)
}
Thanks!