LayerComp

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

Methods:

add, remove, removeAll, apply, recapture, resetFromComp

Objects:

Boolean, String,

Property Listing

Property

Type

Access

Description

appearance

Boolean

read/write

If true, uses layer appearance (layer styles) settings.

comment

Varies

read/write

The description of the layer comp.

name

String

read/write

The name of the layer comp.

parent

 

readonly

The object's container.

position

Boolean

read/write

If true, uses layer position.

selected

Boolean

readonly

If true, the layer comp is currently selected.

typename

String

readonly

The class name of the object.

visibility

Boolean

read/write

If true, the layer comp is visible.

Method Listing

LayerComp add ()

Adds an element.

undefined apply ()

Applies the layer comp to the document.

undefined recapture ()

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

undefined remove ()

Deletes this object.

undefined removeAll ()

Deletes all elements.

undefined resetFromComp ()

Resets the layer comp state to the document state.

Return

LayerComps.add()

LayerComp.add()

LayerComps.[]()

LayerComps.getByName()