Adobe 26001360 - Illustrator CS - PC Manual page 177

Scripting guide
Hide thumbs Also See for 26001360 - Illustrator CS - PC:
Table of Contents

Advertisement

Adobe Illustrator CS Scripting Guide
• 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
177

Advertisement

Table of Contents
loading

This manual is also suitable for:

Illustrator cs

Table of Contents