Skip to content

mask

Mask

thisLayer.mask("Mask 1")

This category contains information relating to mask objects. To manipulate the actual mask path, see Mask Path.

On this page, we’re going to use thisLayer.mask("Mask 1") as a sample on how to call these items, however note that any method that returns a Mask will work.


Attributes

Mask.invert

thisLayer.mask("Mask 1").invert

Description

Returns true if the mask is inverted or false if it is not.

Type

Boolean


Mask.maskExpansion

thisLayer.mask("Mask 1").maskExpansion

Description

Returns the expansion value of a mask, in pixels.

Type

Number


Mask.maskFeather

thisLayer.mask("Mask 1").maskFeather

Description

Returns the feather value of a mask, in pixels.

Type

Number


Mask.maskOpacity

thisLayer.mask("Mask 1").maskOpacity

Description

Returns the opacity value of a mask as a percentage.

Type

Number


Mask.maskPath

thisLayer.mask("Mask 1").maskPath

Description

Returns the actual mask Path.

Type

Path object