Adobe 26001360 Scripting Guide - Page 440
SpotColor, Table 5.141, SpotColor - Properties
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 440 highlights
440 Visual Basic Reference SpotColor Color class used to apply the color value of a spot at a specified tint value. Table 5.141 SpotColor - Properties Property R/O Value type What it is Application Spot Tint R/O Application object The Illustrator Application object Spot object A reference to the SpotColor object which defines the color Double The tint of the color as a value in the range 0.0-100.0 Notes Spot colors are specified using a Double value that ranges from 0.0 to 100.0 for the tint of the color. Example 77.1 This script shows how to create a new spot, and apply a tint of that spot to the fill of a PathItem.Your frontmost document must already have a PathItem before you can run this script. Dim appRef As New Illustrator.Application Dim frontDocument As Illustrator.Document Dim newColor As New Illustrator.RGBColor Dim newSpot As Illustrator.Spot Dim frontPath As Illustrator.PathItem 'Define the new color value newColor.Red = 255# newColor.Green = 0 newColor.Blue = 0 'Create the new spot Set frontDocument = appRef.ActiveDocument Set newSpot = frontDocument.Spots.Add 'Define the new SpotColor as 80% of the specified RGB color newSpot.Name = "Red spot color" newSpot.Color = newColor 'Now apply a 50% of the spot color just created to the frontmost path item. 'We do this by creating a SpotColor object, setting its properties as 'desired, then applying that to a path item's fill color. 12 Aug 03