Adobe 26001360 Scripting Guide - Page 149
no color info, Valid Commands, Notes, Example 30.1
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 149 highlights
Adobe Illustrator CS Scripting Guide 149 Valid Commands • count • delete • duplicate • exists • move • translate • rotate • scale • transform Notes Mesh items cannot be created from a script, but can be duplicated, copied and pasted. no color info Represents the "none" color. Assignment of a reference to a No Color object - to the document's default fill or stroke color, or those of an art item, is equivalent to setting their 'Filled' or 'Stroked' property to False. Note: The no color info class inherits all valid properties from the color info class. Example 30.1 -- No Color --- Make a new document -- Make two overlapping rectangles with different fill colors -- Set the fill color of the top rectangle to no color -- tell application "Illustrator CS" activate make new document make new rectangle in document 1 with properties {position:{200, 500}, width:300, height:100} set the fill color of the result to {class:RGB color info, red:255, green:0, blue:0} make new rectangle in document 1 with properties {position:{150, 550}, width:200, height:100} set the fill color of the result to {class:RGB color info, red:0, green:255, blue:0} delay 1 set the fill color of page item 1 of document 1 to {class:no color info} end tell 12 Aug 03