JavaScript Scripting Reference
ColorSamplers
The collection of
Note:
Because the
name,
docRef.colorSamplers.removeAll()
The following sample uses the
docRef.ColorSamplers.removeAll()
Properties
Property
length
parent
typename
Methods
Method
index
(itemKey)
add
(position)
getByName
(name)
removeAll
()
objects in the document. See
ColorSampler
class is also a property of the
ColorSampler
, rather than the class name,
colorSamplers
Value Type
number (long)
object (Document)
string
Parameter Type
number
array of UnitValue
string
Adobe Photoshop CS3
ColorSamplers
object incorrectly:
ColorSamplers
What it is
Read-only. The number of elements in the
ColorSamplers
Read-only. The
Read-only. The class name of the referenced
ColorSamplers
Returns
ColorSampler
ColorSampler
ColorSampler
JavaScript Object Reference
.
ColorSampler
Document
object, you use the property
, in your code. For example:
collection.
object's container.
ColorSamplers
object.
What it does
Gets an element from the
collection.
ColorSamplers
Creates a new
ColorSampler
The
parameter (x,y)
position
represents the new horizontal and
vertical locations, respectively, of the
moved color sampler.
Note:
For information about the
object, see the
UnitValue
JavaScript Tools Guide
Get the first element in the
collection with the
ColorSamplers
provided name.
Removes all
ColorSampler
from the
ColorSamplers
81
object.
objects
collection.