Adobe 26001360 Scripting Guide - Page 175
Valid Commands, Notes, Example 37.1, class gives you complete access to paths in Illustrator.
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 175 highlights
Adobe Illustrator CS Scripting Guide 175 Table 4.58 path item, path items - Properties (Continued) Property R/O Value type What it is stroke miter limit real stroke overprint stroke width stroked boolean real boolean When a default stroke join is set to mitered, this property specifies when the join will be converted to beveled (squared-off ) by default. The default miter limit of 4 means that when the length of the point reaches four times the stroke weight, the join switches from a miter join to a bevel join. Values: 1-500; a value of 1 specifies a bevel join. If true, the art beneath the stroked object should be overprinted Width of stroke If true, the path should be stroked Valid Commands • count • delete • duplicate • exists • move • translate • rotate • scale • transform Notes The path item class gives you complete access to paths in Illustrator. Example 37.1 The stroke width and color of a path can be easily set, as demonstrated in this example. -- Set the stroke of the first path to a red 4 point line tell application "Illustrator CS" if (count path items of document 1) > 0 then set properties of path item 1 of document 1 to ¬ {stroke width:4.0, stroke color:{red:255.0}} end if end tell 12 Aug 03