Quantcast
Channel: Adobe Community : Popular Discussions - Illustrator Scripting
Viewing all articles
Browse latest Browse all 12845

Retrieving the selected anchor points coordinates.

$
0
0

I have read the scripting guide,

and learned about finding coordinates this way:

 

var aDoc = activeDocument;

var topObject = aDoc.selection[0];

var coord = topObject.pathPoints[0].anchor

alert(coord[0])

 

I'm wondering how you would find the coordinates of a selected anchor point.

For example: You make a hexagon, and then click on a single anchor point with the direct select tool.

I want the script to know the coordinates of that anchor point.

 

I'm using javascript and CS5.

 

Thanks!


Viewing all articles
Browse latest Browse all 12845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>