Specifications

Table Of Contents
Adobe Photoshop CS6
JavaScript Scripting Reference JavaScript Object Reference 53
ArtLayer
An object within a document that contains the visual elements of the image (equivalent to a layer in the
Adobe Photoshop CS6 application).
Access an art layer in a document through the Document
.artLayers collection. You can access a layer by
name; for example:
var layerRef = app.activeDocument.artLayers.getByName("my layer");
layerRef.allLocked = true;
Access the art layers in a layer set through the LayerSet.artLayers collection in the parent set.
Properties
Property Value type What it is
allLocked
boolean
Read-write. True to completely lock the contents and
settings of this layer.
blendMode
BlendMode
Read-write. The blending mode.
bounds
array of
UnitValue
Read-only. An array of coordinates that describes the
bounding rectangle of the layer.
fillOpacity
number [0.0..100]
Read-write. The interior opacity of the layer, a
percentage value.
filterMaskDensity
double
Read-write. The density of the filter mask (between
0.0 and 250.0)
filterMaskFeather
double
Read-write. The feather of the filter mask (between 0.0
and 250.0)
grouped
boolean
Read-write. True if this layer is grouped with the layer
beneath it.
isBackgroundLayer
boolean
Read-write. True if this is the background layer of the
document. A document can have only one
background layer. If there is no background layer,
setting this to true causes this to become the
background layer.
kind
LayerKind
Read-write. Sets the type (such as 'text layer') for an
empty layer.
Valid only when the layer is empty and when
isBackgroundLayer is false. See
isBackgroundLayer
.
You can use the
kind property to make a background
layer a normal layer; however, to make a layer a
background layer, you must set
isBackgroundLayer
to
true.
layerMaskDensity
double
Read-write. The density of the layer mask (between
0.0 and 100.0)