LayerMask
Cut a layer to any shape. Draw a rectangle, an ellipse or your own path, soften its edge, and combine masks to show just what you want.
A LayerMask sits under a video layer: a Rectangle or Ellipse (Position is its centre, with Size and Rotation) or a Path of Points, in the layer's pixels. Feather softens its edge, Opacity and Invert change what it lets through, and Mode adds, subtracts or intersects it with the masks above it; a layer takes up to 8. Select one to edit it in the viewport: drag its handles; Alt click the outline adds a point, Shift click removes one.
Properties
Mask
| Name | Type | Default | Description |
|---|---|---|---|
| Enabled | boolean | true | |
| Feather | number | 0 0 to 1000 | |
| Invert | boolean | false | |
| Mode | string | "Add" Add, Subtract, Intersect | How the mask combines with the masks above it on the layer: Add, Subtract or Intersect. |
| Opacity | number | 1 0 to 1 | |
| Position | Vector2 | 320, 180 | The centre of a Rectangle or Ellipse mask. |
| Rotation | number | 0 | The rotation of a Rectangle or Ellipse mask. |
| Shape | string | "Rectangle" Rectangle, Ellipse, Path | The mask's outline: a Rectangle or Ellipse placed by Position, Size and Rotation, or a Path polygon of Points. |
| Size | Vector2 | 320, 180 | The size of a Rectangle or Ellipse mask. |
File
| Points | {Vector2} | The Path shape's polygon, in the layer's display pixels and filled even-odd, up to 256 points per layer. |
