Adobe 26001360 Scripting Guide - Page 112
gradient color info, Notes, Example 15.1
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 112 highlights
112 AppleScript Reference gradient color info A gradient color specification, used to specify a gradient color in conjunction with the color property. Note: The gradient color info class inherits all valid properties from the color info class Table 4.25 gradient color info - Properties Property angle gradient hilite angle hilite length length matrix origin R/O Value type real object reference real real real matrix fixed point What it is The gradient vector angle (in degrees); default: 0.0 A reference to the gradient object that defines the gradient to use in this color definition The gradient hilite vector angle in degrees; default: 0.0 The gradient hilite vector length; default: 0.0 The gradient vector length An additional transformation matrix to manipulate the gradient path The gradient vector origin Notes This class is used to define a record which contains the color component values of a gradient color swatch. It is used for specifying and retrieving color information from an Illustrator document or from page items in a document. Example 15.1 This example demonstrates how to set a path item's fill color to a gradient color. -- Set fill color of the first path in the current document -- to the first gradient in the document tell application "Illustrator CS" set the fill color of path item 1 of document 1 to ¬ {gradient:gradient 1 of document 1} end tell 12 Aug 03