Adobe Photoshop CS5 Object Library JS: LayerComps

Photoshop CS5

Class

LayerComps

 The layer comp objects associated with the document.

See also LayerComp.

QuickLinks

[], add, getByName

Hierarchy

Object
LayerComps

Properties

PropertyTypeAccessDescription
lengthint readonlyNumber of elements in the collection.
parentObject readonlyThe object's container.
typenamestring readonlyThe class name of the object.

Methods

Instances

LayerComp [] (index: uint)
Get an element in the collection with the provided index.

ParameterTypeDescription
indexuint

LayerComp add (name: string[, comment: string][, appearance: bool=false][, position: bool=false][, visibility: bool=true])
Adds a layer comp.

ParameterTypeDescription
namestringThe name of the layer comp.
commentstringThe description of the layer comp. (Optional)
appearanceboolIf true, uses the layer appearance or style for this layer comp. (default: false) (Optional)
positionboolIf true, uses the layer position for this layer comp. (default: false) (Optional)
visibilityboolIf true, uses the layer visibility for this layer comp. (default: true) (Optional)

LayerComp getByName (name: string)
Get the first element in the collection with the provided name.

ParameterTypeDescription
namestring

Element of

Document.layerComps

Jongware, 28-Aug-2012 v3.0.3iContents :: Index