Adobe Photoshop CS5 Object Library JS: LayerComp

Photoshop CS5

Class

LayerComp

 A snapshot of a state of the layers in a document (can be used to view different page layouts or compostions).

QuickLinks

add, apply, recapture, remove, removeAll, resetFromComp

Hierarchy

Object
LayerComp

Properties

PropertyTypeAccessDescription
appearancebool r/wIf true, uses layer appearance (layer styles) settings.
commentany r/wThe description of the layer comp.
namestring r/wThe name of the layer comp.
parentObject readonlyThe object's container.
positionbool r/wIf true, uses layer position.
selectedbool readonlyIf true, the layer comp is currently selected.
typenamestring readonlyThe class name of the object.
visibilitybool r/wIf true, the layer comp is visible.

Methods

Instances

LayerComp add ()
Adds an element.

void apply ()
Applies the layer comp to the document.

void recapture ()
Recaptures the current layer state(s) for this layer comp.

void remove ()
Deletes this object.

void removeAll ()
Deletes all elements.

void resetFromComp ()
Resets the layer comp state to the document state.

Return

LayerComp LayerComp.add ()

LayerComp LayerComps.[] (index: uint)

LayerComp LayerComps.add (name: string[, comment: string][, appearance: bool=false][, position: bool=false][, visibility: bool=true])

LayerComp LayerComps.getByName (name: string)

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