PhotoshopCC 2015.5
Object

Layer

A layer object.

Extended byArtLayer·LayerSet

Properties

NameType AccessDescription
Boolean read/write If true, the layer's contents and settings are locked.
BlendMode
+16 more
read/write The mode to use when compositing an object.
UnitRect readonly If the Layer is a layer set, this property returns a reference to the corresponding layer set object.
UnitRect readonly Bounding rectangle of the Layer not including effects.
Int readonly The unique ID of this layer.
Int readonly The layer index sans layer groups, how Photoshop would index them.
Layer[] readonly The layers linked to this layer.
String read/write The name of the layer.
Number 0–100 read/write The layer's master opacity (as a percentage). Range: 0.0 to 100.0.
The readonly The object's container.
String readonly The class name of the object.
Boolean read/write If true, the layer is visible.
XMPMetadata readonly XMP metadata associated with the Layer.

Methods

Layer

Duplicate this object.

relativeObject Object
insertionLocation ElementPlacement
void

...

layerSet? LayerSet
void

Deletes this object.

void

Deletes all elements.

void

Scales the object.

horizontal? Number The amount to scale the object horizontally (as a percentage).
vertical? Number The amount to scale the object vertically (as a percentage).
anchor? AnchorPosition The point to resize about.
void

Rotates the object.

angle Number The number of degrees to rotate the object.
anchor? AnchorPosition The point to rotate about.
void

Moves the object relative to its current position.

deltaX? UnitValue The amount to move the object horizontally.
deltaY? UnitValue The amount to move the object vertically.

Object of 2

Properties elsewhere that hold a Layer.

Parameter of 1

Method parameters that accept a Layer.

Return 4

Methods that return a Layer.