Overview
DaVinci Resolve Studio only.
In Fusion, Magic Mask uses version 2 by default, which works essentially like Magic Mask v2 in the Color page, with some Fusion specific interface changes. You place points on the subject to isolate: an entire person or object, or a specific feature of a person (face, hair, arms, shoes...). The mask is generated, and tracking it over time is built into the node. The result won't always be perfect: the Matte tab lets you refine it.
To get the old Magic Mask back (compatibility with older projects), check Use Legacy Magic Mask at the bottom of the Inspector.
Where to find this node
- Effects Library:
Tools > Matte > Magic Mask - Quick add: right-click in the Node Editor →
Add Tool > Matte > Magic Mask
Inputs
- Input (orange) - the 2D image to analyze.
- Garbage Matte (gray) - optional. Areas inside this mask become transparent. Applied directly to the alpha channel.
- Solid Matte (white) - optional. Areas inside this mask become fully opaque.
- Effect Mask (blue) - optional. Limits the pixels that are processed. The mask is applied after the node is processed.
Setup
Image → Magic Mask → mask of a Color Corrector → Foreground of a Merge
The Magic Mask output can go into any mask input.
Placing points
Ideally, choose a frame where the subject is completely in view and unobstructed.
- Positive point (blue): load Magic Mask in a viewer and left-click on the subject, or set Point Mode to Add.
- Negative point (red): Option-left-click, or set Point Mode to Subtract. It removes an area from the mask, for example the wheels of a car or specific books from a bookshelf.
- Delete points: Shift-drag around the points to select them (green), then press the delete key. Or set Point Mode to Select, then click the delete button.
Center the points on the part you want to add or remove. Usually a single point identifies an object correctly, unless it is incredibly complex.
Tracking tab
- Mode
- Faster (lower quality mask, quicker, suitable for garbage matting) or Better (more detailed mask, more processor-intensive).
- Point Mode
- Add Point (blue point to include), Subtract Point (red point to exclude), Select Points (bounding box selection, points shown in green), Delete Point (deletes the selected points).
- Tracking Controls
- Track Reverse, Track Reverse One Frame, Track Forward Then Reverse, Stop Tracking, Track Forward, Track Forward One Frame. Frame-by-frame tracking lets you reposition a point that fails to follow the subject.
- Clear Points
- Current (frame under the playhead), Range (render range), All (entire clip).
- Go To Frame
- First Frame of Tracked Area, Reference Frame, Last Frame of Tracked Area.
- Disk Cache
- Regenerate All rebuilds the disk cache, Clear deletes the frames in the cache.
- Reference Time
- the frame where the initial points are drawn, and where tracking begins. It cannot be changed once set without destroying all existing tracking information.
- Processed Frames
- the range already tracked (Start and End), not user editable.
- Post-Multiply Image
- multiplies the color channels by the alpha it creates. On by default. When unchecked, the image is no longer premultiplied: use the Subtractive option of the Merge instead of Additive.
Matte tab
Refines the alpha of the mask, combined with any connected Solid and Garbage mattes. Display the alpha channel in the viewer while adjusting.
- Filter
- filter used to blur the matte. Box Blur, Bartlett, Multi-Box, Gaussian or Fast Gaussian (default).
- Blur
- blurs the edge of the matte. At zero, the edge is hard.
- Erode/Dilate
- above 0.0 the matte grows, below it shrinks.
- Gamma
- makes semitransparent areas more opaque or more transparent, leaving pure black and white untouched.
- Threshold
- below the lower threshold the matte becomes transparent, above the upper threshold it becomes opaque.
- Restore Fringe
- restores the edge of the matte around the subject, such as hair, while keeping the matte solid.
- Invert Matte
- inverts the alpha channel.
- Solid Matte / Garbage Matte
- the Invert checkbox in each section inverts that matte before it is combined with the source alpha.
The Settings tab is common to the other Matte nodes.
Use cases
- Isolate the face and exposed skin (torso, arms) for an overall skin tone adjustment that leaves hair and clothes untouched.
- Isolate a piece of clothing whose color is close to another one: Magic Mask relies on shape to generate the mask.
- Quickly create a garbage matte in Faster mode.
