Skip to content

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.


thisLayer.mask("Mask 1").invert

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

Boolean


thisLayer.mask("Mask 1").maskExpansion

Returns the expansion value of a mask, in pixels.

Number


thisLayer.mask("Mask 1").maskFeather

Returns the feather value of a mask, in pixels.

Number


thisLayer.mask("Mask 1").maskOpacity

Returns the opacity value of a mask as a percentage.

Number


thisLayer.mask("Mask 1").maskPath

Returns the actual mask Path.

Path object