Specifications

Table Of Contents
Adobe Photoshop CS6
JavaScript Scripting Reference JavaScript Object Reference 129
LayerSet
A group of layer objects, which can include ArtLayer objects and other (nested) LayerSet objects. A single
command can manipulate all layers in the set.
Access top-level layers sets in a document through the Document
.layerSets collection. You can access a
layer set by name. For example, the following sets the
allLocked value for "myLayerSet":
var layerSetRef = app.activeDocument.layerSets.getByName("myLayerSet");
layerSetRef.allLocked = true
Access nested layer sets through the LayerSet.layerSets collection in the parent set. For example:
app.activeDocument.layerSets[0].layerSets[0];
Properties
Property Value type What it is
allLocked
boolean
Read-write. True if the contents in the layers in this set
are not editable.
artLayers
ArtLayers
Read-only. The art layers in this layer set.
blendMode
BlendMode
Read-write. The blend mode to use for the layer set.
bounds
array of UnitValue
Read-only. The bounding rectangle of the layer set.
enabledChannels
array of Channel
Read-write. The channels enabled for the layer set; must
be a list of component channels. See Channel
.kind.
layers
Layers
Read-only. The layers in this layer set.
layerSets
LayerSets
Read-only. Nested layer sets contained within this layer
set.
linkedLayers
array of ArtLayer
and/or LayerSet
Read-only. The layers linked to this layerSet object.
name
string
Read-write. The name of this layer set.
opacity
number [0.0..100.0]
Read-write. The master opacity of the set.
parent
Document or
LayerSet
Read-only. The containing document or layer set.
typename
string
Read-only. The class name of the referenced LayerSet
object.
visible
boolean
Read-write. True if the set is visible.