LayerComps

The layer comp objects associated with the document.

Methods:

add, getByName, []

Property Listing

Property

Type

Access

Description

length

Int

readonly

Number of elements in the collection.

parent

 

readonly

The object's container.

typename

String

readonly

The class name of the object.

Method Listing

LayerComp [] (index:Uint)

Get an element in the collection with the provided index.

Parameter

Type

Description

index

Uint

 

LayerComp add (name:String, [comment:String], [appearance:Boolean=Boolean], [position:Boolean=Boolean], [visibility:Boolean=Boolean])

Adds a layer comp.

Parameter

Type

Description

name

String

The name of the layer comp.

comment

String

The description of the layer comp.

appearance

Boolean

If true, uses the layer appearance or style for this layer comp.

(default: false)

position

Boolean

If true, uses the layer position for this layer comp.

(default: false)

visibility

Boolean

If true, uses the layer visibility for this layer comp.

(default: true)

LayerComp getByName (name:String)

Get the first element in the collection with the provided name.

Parameter

Type

Description

name

String

 

Object of

Document.layerComps