Adobe 26001360 Scripting Guide - Page 177
Notes, Example 38.1, property of a path point to a corner
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 177 highlights
Adobe Illustrator CS Scripting Guide 177 • duplicate • exists • make Notes A path point represents a point of a path, with its pair of control points, or handles. Any point can considered a corner point. Setting the point type property of a path point to a corner forces the left and right direction points to be on a straight line when the user attempts to modify them in the user interface. Example 38.1 The following script demonstrates how a path point of a path can be modified. -- Move the first point in a path to the same spot as the last point tell application "Illustrator CS" if (count path items of document 1) > 0 then set lastAnchor to anchor of last path point of path item 1 of document 1 set anchor of path point 1 of path item 1 of document 1 to lastAnchor end if end tell Example 38.2 This example demonstrates how to retrieve the coordinates of every point on a path. -- Returns the coordinates of each point on a path tell application "Illustrator CS" if (count path items of document 1) > 0 then set anchorList to (anchor of every path point of path item 1 of document 1) end if end tell 12 Aug 03