Layers

The collection of layer objects, including art layer and layer set objects, in the document.

Methods:

removeAll, 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

Layer [] (index:Uint)

Get an element in the collection with the provided index.

Parameter

Type

Description

index

Uint

 

Layer getByName (name:String)

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

Parameter

Type

Description

name

String

 

undefined removeAll ()

Deletes all elements.

Object of

Document.layers

LayerSet.layers