new GetLayerAction()

Description

Represents a layer in a Photoshop document.
Learn more: Deliver selected layers of a PSD image

Details

Visit PSDTools for an example

Methods


byIndex( from )

Description

deliver an image containing only specified layer of a Photoshop image from The layer index

Parameters
Name Type Description
from string | number

the index of the layer


getActionTag() → {string}

Description

Returns the custom name tag that was given to this action

Returns

byRange( from, to )

Description

deliver an image containing only specified range of layers of a Photoshop image

Parameters
Name Type Description
from string | number

The layer number

to string | number

The layer number


setActionTag() → {this}

Description

Sets the custom name tag for this action

Returns

byName( name )

Description

deliver an image containing only specified layer by name of a Photoshop image

Parameters
Name Type Description
name string | number

The layer by name


toString() → {string}

Description

Calls toString() on all child qualifiers (implicitly by using .join()).

Returns
Details

addQualifier( qualifier ) → {this}

Description

Adds the parameter to the action.

Parameters
Name Type Description
qualifier SDK.Qualifier
Returns

addFlag( flag ) → {this}

Description

Adds a flag to the current action.

Parameters
Name Type Description
flag Qualifiers.Flag
Returns
Details