Spotcolor - Adobe 26001360 - Illustrator CS - PC Manual

Scripting guide
Hide thumbs Also See for 26001360 - Illustrator CS - PC:
Table of Contents

Advertisement

440

SpotColor

Color class used to apply the color value of a spot at a specified tint value.
Table 5.141 SpotColor — Properties
Property
Application
Spot
Tint
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.
R/O
Value type
R/O
Application object
Spot object
Double
12 Aug 03
Visual Basic Reference
What it is
The Illustrator Application object
A reference to the SpotColor object
which defines the color
The tint of the color as a value in the
range 0.0–100.0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Illustrator cs

Table of Contents