Skip to content

Masks

Cut a clip or an effect down to shapes: draw rectangles, ellipses, stars, pen paths and freehand masks, or use an SVG’s outlines; soften and track them.

A mask cuts a clip down to a shape: show only a face, hide a logo, soften a corner. On an adjustment clip or an effect, a mask keeps the change to the part of the picture it covers. A clip or an effect can have up to 32 masks.

Draw a mask on the picture

Drawing a mask on the program monitor lets you place it over what you want to cover. Any clip with a picture can be masked; audio, camera and light clips can’t.

  1. Select one clip and move the playhead over it.
  2. Click Mask in the bar above the monitors, and choose a tool: Rectangle, Ellipse, Polygon, Star, Pen or Freehand. Or press AltP to start with the pen.
  3. Draw on the program monitor. A bar over the picture shows the tool, a hint for it, and what the mask is drawn on.
  4. Click Done, or press Esc, to stop drawing.

While drawing, press R, E, G, S, P or F to change the tool.

ToolHow to draw
Rectangle, EllipseDrag out from a corner. Hold Shift for a square or circle, Alt to draw it from its middle.
Polygon, StarDrag from its middle out to a corner or point. Shift keeps it even.
PenClick for corners and drag for curves. Click the first point, or press Enter, to close the path. Backspace takes the last point away; Esc starts again.
FreehandDraw round what to mask in one stroke. It’s closed and smoothed into a path when you let go.

A path has from 3 to 256 points. What you draw is added and picked, ready to change.

Add a mask in the Inspector

The Masks section in the Inspector lists a clip’s masks, in the order they’re combined.

  1. Select the clip and go to its Masks section.
  2. Click Add. Under Add in the middle, choose Rectangle, Ellipse, Polygon or Star to put one in the middle of the picture. Under Draw on the picture, choose a tool to draw one. Under From an SVG, use an SVG’s outlines (below).

To mask an effect instead of the whole clip, click Mask at the bottom of the effect’s row in the Effects section. Its masks are listed there, and work the same way. See effects.

The More button in the section’s header has Copy masks, Paste masks, Paste in place of these and Remove all masks.

Masks from an SVG or a shape

A logo or lettering saved as an SVG, or a shape you’ve made, can be masks, so the picture shows only through its outlines.

  1. Select the clip and go to its Masks section, or to an effect’s masks.
  2. Click Add. Under From an SVG, choose SVG file… to pick a file, Paste SVG code to use code you’ve copied from a vector editor or a web page, or one of the SVGs in your media, listed by name.

The SVG is fitted inside the clip’s picture, about its middle. What it fills becomes masks, each of its outlines a path, joined as the SVG fills them: its holes, such as the middle of an O, are cut out with Subtract or Difference. Masks are made only of what’s filled, so its strokes and lines are left out; but when nothing of it is filled, its closed outlines are masked as if they were. The message after adding them says what was left out, and Undo takes them all away.

The masks go after the ones there. They’re all added, or none: when they’d take it past 32 masks, the editor says how many there’s room for. Remove some first, or simplify the SVG in a vector editor.

To use a shape’s outlines:

  1. Select the shape clip and click Copy as masks in the header of its Shape section, or right-click the clip on the timeline and choose Copy as masks.
  2. Select the clip to mask, and in its Masks section click More, then Paste masks or Paste in place of these.

A shape is copied as it is at the playhead, at the same place from the picture’s middle. Each part is a mask, joined as the part is, and a rectangle, ellipse, polygon or star stays one. A shape of layers, or one that’s offset or morphing, is copied as what it fills, each outline a path. If the shape moves, its animation isn’t in the masks.

Change a mask’s shape

Click a mask’s name in the Inspector to pick it, or click its outline on the program monitor. A picked mask shows handles on the program monitor. The viewer’s Transform tool has to be on.

  • Drag inside the mask to move it. Shift keeps it to one direction.
  • Drag a corner of its box to size it from the other corner, or a side to size it from the other side. Alt sizes it from its middle; Shift keeps its proportions. A path’s corner handles scale it about its middle.
  • Drag the round knob to turn it. Hold Shift for 15° steps.

A path shows its points. Click a point to pick it, and Shift-click to pick more. Drag to move them. Alt-drag a point to pull a curve out of it, and Alt-click a point to remove it. Double-click a point to make it a corner or a curve, and double-click the edge to put a point in. A curve’s handles stay in line; hold Alt to move one alone, for a sharp turn. Delete removes the picked points, or the picked mask. Esc lets go of the points, then the mask.

To turn a rectangle, ellipse, polygon or star into a path you can edit point by point, choose Path in its Shape.

Mask settings

Each mask is a row in the Masks section. Its switch turns it off and on, keeping its settings. More has Move up, Move down, Rename, Duplicate, Copy, Invert, the outline color, and Remove with its name. Double-click its name to rename it.

SettingWhat it does
ModeHow it combines with the masks before it (below).
InvertCovers what’s outside it rather than what’s in.
ShapeRectangle, Ellipse, Polygon, Star or Path.
Width, HeightIts size before it’s scaled.
Sides, PointsHow many sides a polygon has, or points a star has: from 3 to 64.
RoundnessHow rounded its corners are.
Inner radiusHow far in a star’s corners between the points are.
X, Y, Rotation, ScaleWhere it is, how it’s turned, and how big it is.
FeatherHow wide its soft edge is.
Soft edgeAcross the edge is soft either side of the edge; Outside keeps all of what it covers fully shown; Inside shows nothing past the edge.
FalloffSmooth eases in and out across the soft edge; Even fades evenly.
ExpansionPushes its edge out, or pulls it in below 0.
OpacityHow much it covers.
Motion blurBlurs its edge along the way it moves, as the clip’s motion blur would.

Its numbers can be animated with keyframes: see keyframes. A path’s shape is keyed as a whole: in Path, click the keyframe button to pin its shape at the playhead, then change it elsewhere in the clip to animate it.

Combine masks

Masks are combined from the top of the list down. Each one’s Mode says how it joins with the ones before it.

ModeWhat shows
AddWhat it covers, as well as what the masks before it show.
SubtractWhat the masks before it show, less what it covers.
IntersectOnly where it and the masks before it both cover.
LightenThe more of it and the masks before it, without adding them up.
DarkenThe less of it and the masks before it.
DifferenceWhere it or the masks before it cover, but not where both do.

The first mask joins with all of the picture for Subtract, Intersect and Darken, and with none of it otherwise. So a first mask set to Subtract cuts a hole in the clip.

Track a mask

Tracking keeps a mask on something that moves, by following what’s under it and keying the mask to keep with it.

  1. Place the mask over what to follow, at a frame where it’s clear, with the playhead there.
  2. Choose how it follows in Tracking: Position; Position and rotation; Position, scale and rotation; or Perspective, for a flat surface such as a sign or a screen. Perspective makes a shape a path.
  3. Click Track forward or Track backward to follow it to the clip’s end or start, or until it’s lost. Track forward a frame and Track back a frame go one frame at a time.

A bar over the program monitor shows how far it’s got. Click Stop, or press Esc, to stop; what’s been tracked is kept. Undo takes all of a track back at once.

A mask can also follow one of the clip’s trackers, with Follows and Takes up. See motion tracking.

Track mattes

A track matte shows a clip only through the picture on a video track above it: a video inside the letters of a title, say. Unlike a mask, the matte is a picture of its own, so it can move, animate and change over time.

  1. Put what to show the clip through, such as a title, on a video track above the clip’s.
  2. Select the clip and open the Blend section of the Inspector.
  3. Pick that track in Track matte.
  4. Choose how Matte by reads it: Alpha shows the clip where the matte’s picture is opaque. Luma shows it where the matte’s picture is bright: white shows it and black hides it.

Turn on Invert to show the clip where the matte isn’t instead.

A track used as a matte isn’t shown on its own: it’s drawn only to cut the clips that use it, and it still cuts them when it’s hidden. Its header shows a matte badge, and the badge’s tip names the tracks that use it. Clips on a matte track can’t take mattes of their own.

Only a video track above the clip’s, in the same sequence, can be its matte. When a matte can’t be used, such as after its track is deleted or moved below the clip, the Inspector says why and the clip shows as if it had none. Pick another track, or None, to clear it. An adjustment clip can’t take a track matte; give it a mask instead.