Masking is used to manually create a matte. A matte determines which parts of a layer are visible.

Practically, this means that masks are used to cut holes in your layers.

Academy Award-winning planar tracking is available in the mocha component, available from the Store. See Planar tracking with mocha HitFilm for details.

Creating masks mask-circle@2x mask-square@2xpen@2x

Masks can only be created in composite shots.

To create a mask you use the mask drawing tools, which are used to draw elliptical, rectangular and freehand shapes.

First select a layer on the timeline, then use one of the mask tools to begin drawing. You may want to use the Layer viewer to make it easier to see your layer.

Rectangle and ellipse shapes

Click and drag on the Viewer to create the shape. This will create a new mask on the currently selected layer. Releasing the mouse will set the shape.

Holding Shift while drawing the shape will constrain it to a perfect square or circle.

To deform the shapes see 'Editing masks', below.

Freehand shape

The Freehand Mask tool is for creating complex mask shapes.

With the Freehand Mask tool selected you can click on the Viewer to draw points. Clicking and dragging creates a curved line, while clicking and releasing creates a linear, straight line.

The shape of curved points can be further adjusted using the extension handles.

You can change the type of any point by right clicking on it and choosing the required type from the menu:

Make Curved Locked: Both extension handles work in tandem. Adjusting one will adjust the other simultaneously. This is useful for maintaining smooth curves.
Make Curved Unlocked: The extension handles can be adjusted separately. This is useful for creating sharp corners while retaining a curved line.
Make Linear: The point forms an angled corner and the line either side is straight.

To activate a freehand mask you must close it. To do this simply click again on the first point you created, having created at least 3 points. The mask will close and activate.

Editing masks pen@2xpointer@2x

Once a mask has been created it can be edited and customized.

Editing the shape

If you want to make adjustments to the mask shape use the freehand shape tool. This will display all of the available mask shape points of the currently selected mask. Masks can be selected on the timeline or in the Controls panel.

Individual points can be clicked and dragged to change the shape. Curved points have additional bezier controls for changing the curvature.

Clicking on a connecting line will add a new linear point. Clicking and dragging on a connecting line will add a new curved point.

Transforming the shape

Using the Select tool in the Viewer you can transform the mask shape in the same way you would the layer itself.

The currently selected mask on the timeline or in the Controls panel will also be selected in the Viewer, with a bounding box around the shape. This can be used to scale and position the shape without changing the shape.

Holding Alt and dragging on an edge point will rotate the shape.

Animating masks

To animate the mask over time you must have the Path property's keyframes enabled. See Animating with keyframes for details.

The mask's entire shape is stored in the Path property. You cannot keyframe individual mask points.

Mask properties

A mask's properties can be customized in the Controls panel or on the timeline.

Inverted: Toggles whether the mask selection area is inside or outside of your specified shape.
Blend: Multiple mask shapes can be blended together in various ways for different results.
Expansion: This can be used to contract or expand the mask without needing to change its shape or position.
Feather: There are three types of feathering, working from inside the mask shape, outside, or both. Which you use will depend on the specifics of your shot.
Feather strength: A stronger feather creates a softer edge to the mask.
Roundness: This is a useful way to change a linear shape into a curved shape without needing to alter the points.
Path: If keyframing is turned on for this property the mask shape can then be animated over time.

You cannot add or remove mask points using keyframing. A mask shape will have the same number of points for its entire duration.

Opacity: Adjusts the transparency of the mask.
Extra transform: Used by mocha HitFilm. See Planar tracking with mocha HitFilm for details.