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.

The Courtyard Corner, granite blocks, a pine crate, a blue barrel and a steel bucket on packed sand, a red ball in the air, late afternoon sun.
Before
The same frame with a LayerMask, the picture cut to a soft oval, the corners black.
After

After: A LayerMask with Shape Ellipse, 1300 by 860 pixels and Feather 120.

A LayerMask under a video layer is 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 and drag its handles in the viewport. Alt click the outline to add a point, Shift click to remove one.

Properties

Mask

NameTypeDefaultDescription
Enabledbooleantrue
Feathernumber0
0 to 1000
Invertbooleanfalse
ModestringAdd
Add, Subtract, Intersect
How the mask combines with the masks above it on the layer: Add, Subtract or Intersect.
Opacitynumber1
0 to 1
PositionVector2320, 180The centre of a Rectangle or Ellipse mask.
Rotationnumber0
any value
The rotation of a Rectangle or Ellipse mask.
ShapestringRectangle
Rectangle, Ellipse, Path
The mask's outline: a Rectangle or Ellipse placed by Position, Size and Rotation, or a Path polygon of Points.
SizeVector2320, 180The 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.
From Instance 22