6 Replies Latest reply on May 26, 2012 12:13 AM by Mellifluous-Irony

    Retrieving the selected anchor points coordinates.

    Mellifluous-Irony Level 1

      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



      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.