Adobe 26001360 Scripting Guide - Page 217
spot color info, Notes, Example 61.1
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 217 highlights
Adobe Illustrator CS Scripting Guide 217 spot color info A spot color specification, used to specify a spot color in conjunction with the color property. Note: The CMYK color info class inherits all valid properties from the color info class. Table 4.85 spot color info - Properties Property spot tint R/O Value type object reference real What it is A reference to the spot object which defines the color The tint of the color as a value in the range 0.0-100.0; default: 100.0 Notes The spot property must be set to a reference to an existing spot color definition. Example 61.1 The following script demonstrates how the default stroke color of the current document can be set to a new spot color specification. -- Make a new spot color and apply a 50% tint to the default stroke color tell application "Illustrator CS" -- create a document with RGB color space make new document with properties {color space:RGB} set newSpot to make new spot in document 1 with properties ¬ {name:"Big Blue", color:{red:0.0, green:0.0, blue:255.0}} set default stroke color of document 1 to {spot:newSpot, tint:50.0} end tell 12 Aug 03