Mask attributes and methods (expression reference)

Note: You can link Mask Path properties to other path properties (paths in a shape layer and brush strokes), but the properties are not accessible for direct numerical manipulation through expressions.
maskOpacity
Return type: Property.

Returns the opacity value of a mask as a percentage.

maskFeather
Return type: Property.

Returns the feather value of a mask, in pixels.

maskExpansion
Return type: Property.

Returns the expansion value of a mask, in pixels.

invert
Return type: Boolean.

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