FUSION · FULL ARTICLE
MaskPaint
MaskPaint paints a single-channel mask with brush strokes, can combine it with an incoming mask, and supports stroke durations for temporal cleanup.
Overview
MaskPaint creates mask images directly with paint strokes, primitive shapes and polyline-style strokes. Unlike the regular Paint node it works on single-channel mask data rather than arbitrary RGB channels.
The node has a single optional Effect Mask input. An incoming mask can be combined with the painted result; the combination is controlled by Paint Mode on the Mask tab.
Stroke type matters. Multistrokes are efficient for repeated cleanup but are less editable after painting, while vector strokes are better when shape and timing need further adjustment.
Stroke Duration can make cleanup exist on one frame, a range or the whole shot. For Multistroke workflows, set the intended duration before painting and verify neighboring frames.
When to use it
- Paint missing parts of a matte
- Remove unwanted matte regions
- Repair individual frames
- Create hand-drawn reveals
- Add holdout strokes
- Refine hair or irregular edges
Inputs & outputs
MaskPaint paints a mask stream and can modify an existing matte
MaskPaint's primary source is the strokes you paint. Its optional input accepts an existing mask so those strokes can add, remove or otherwise combine with existing coverage.
Rasterizes MaskPaint strokes, combines them with an incoming mask and applies common mask controls.
Painted strokes Brush Shape, Size, Softness, Apply Mode and stroke timing generate MaskPaint's own coverage.
Inputs
- Effect Mask / Combine
Existing mask to edit
Receives: A mask stream that needs local painting, subtraction or repair.
Inside the node: Painted strokes are combined with the incoming mask according to Paint Mode on the Mask tab.
Typical sources: Bitmap · Polygon · B-Spline · keyer / matte branch · another MaskPaint
With nothing connected, MaskPaint can still create a new mask from scratch. Do not treat this as a normal RGB image input.
Outputs and destination
Mask
A single-channel mask after combining incoming matte data with painted strokes.
Next step: MatteControl · Color Corrector → Effect Mask · Blur → Effect Mask · another mask node
For frame-specific repairs, control stroke timing/lifetime so the fix does not affect unintended frames.
- Mask
- Single-channel mask output after combining incoming mask data, painted strokes and common Mask controls.
Processing order
- MaskPaint creates coverage from painted strokes.
- With an incoming mask, Paint Mode determines how strokes modify the existing matte.
- Common mask controls process the combined coverage.
- Mask Output sends the repaired/painted mask downstream.
Fill a hole in a matte
Keyer matte → MaskPaint.Combine → MatteControl.Solid Matte
MaskPaint does not alter the RGB image; it repairs the matte that MatteControl later uses.
MaskPaint edits a mask stream. Strokes create coverage; the input is only needed when an existing mask is being modified.
Parameters
MaskPaint · Inspector reference
MaskPaint paints a matte with strokes. Separate brush shape, stroke application, transforms of existing strokes and final mask processing.
- Brush
- Size and softness
- Apply
- What the stroke does
- Stroke
- Position and spacing
- Mask
- Final matte
Brush · Brush
Brush Controls, shape, tablet behavior, size and softness define the paint tool before drawing.
- Brush Controls
Brush > Brush ControlsOpens the MaskPaint brush size, softness, spacing and stroke controls. Container for the brush settings used before a new stroke is applied. It includes shape, tablet response, size and softness; changing these after some stroke types are painted may not rewrite old strokes.
Check / distinguish: Test one stroke and several adjacent frames before applying the workflow broadly.
- Brush Shape
Brush > Brush ShapeChooses the shape of the MaskPaint brush. Chooses the brush footprint. A soft round brush is a safe starting point for matte repair; harder or custom shapes are useful for technical edges or specialized marks.
Check / distinguish: Test one stroke and several adjacent frames before applying the workflow broadly.
- Tablet Settings
Brush > Tablet SettingsConfigures how pen pressure and other tablet input affect MaskPaint strokes. Maps pen pressure and tablet behavior to brush properties. With a mouse, keep pressure-driven behavior simple and control the stroke with explicit Size, Softness and Opacity.
Check / distinguish: Change only this control from its default state and compare before/after.
- Size
Brush > SizeSets the overall size. Sets the brush diameter for the current paint operation. Match it to the defect: a brush much larger than the repair area tends to damage otherwise valid matte edges.
Check / distinguish: Change only this geometry control and compare position, scale and result bounds.
- Softness
Brush > SoftnessControls feathering across the stroke edge. Controls feather inside the brush footprint. Higher softness makes cleanup blend into an existing matte more gradually; zero creates a hard technical edge.
Check / distinguish: Inspect the edge at 100% Viewer scale and at the intended output size.
- Single-channel Color
Single-channel ColorMask Paint creates a single-channel mask: Color controls alpha rather than arbitrary RGB brush color. Alpha=1 supplies white coverage; Alpha=0 paints black with the appropriate Apply Mode.
Check / distinguish: Inspect the stroke directly as a mask before connecting it downstream.
Apply · Stroke application
Apply Controls, mode, color/alpha, opacity and duration define what a new stroke does.
- Apply Controls
Apply > Apply ControlsApplies the current MaskPaint stroke controls to the selected stroke or paint operation. Group of settings that controls how the painted value is applied to the mask rather than how the brush footprint itself is shaped.
Check / distinguish: Change only this control from its default state and compare before/after.
- Apply Mode
Apply > Apply ModeChooses whether strokes add, subtract or otherwise combine with existing matte information. Controls how a new stroke changes existing mask coverage. Use additive/merge behavior to fill missing coverage and subtractive behavior only when you intentionally need to remove coverage.
Check / distinguish: Change only this control from its default state and compare before/after.
- Color
Apply > ColorSets the color. MaskPaint does not offer normal RGB channel painting like Paint. The color group is reduced to mask/alpha behavior; treat it as single-channel coverage.
Check / distinguish: Change only this control from its default state and compare before/after.
- Alpha
Apply > AlphaAdjusts the alpha channel. Sets the coverage value painted into the mask. Alpha 1 adds full coverage; lower values create partial coverage and are useful only when a deliberately gray matte is intended.
Check / distinguish: Compare RGB and Alpha separately before and after changing this control.
- Opacity
Apply > OpacitySets the overall opacity of the material or object. Scales the overall contribution of the current stroke. It can soften a repair without changing brush geometry, but low opacity can create hidden gray holes in a supposedly solid matte.
Check / distinguish: Compare RGB and Alpha separately before and after changing this control.
- Stroke Duration
Apply > Stroke DurationMultistroke duration in frames. Duration=1 limits a new Multistroke to one frame; it is not a persistent stroke. For an editable persistent patch use Stroke with Stroke Animation=All Frames. Set Duration=1 before painting a one-frame Multistroke.
Check / distinguish: Inspect the frame before, at and after the stroke.
Stroke · Stroke transform
Stroke Controls, center, angle, size and spacing affect an existing stroke or its stamp pattern.
- Stroke Controls
Stroke > Stroke ControlsEdits the selected stroke’s position, rotation, scale and dab spacing. Transforms and sampling controls for the selected stroke, including center, angle, scale and spacing. Availability depends on the chosen stroke type.
Check / distinguish: Test one stroke and several adjacent frames before applying the workflow broadly.
- Center X / Y
Stroke > Center X / YSets the X/Y coordinates for center. Moves the selected stroke in the frame. This is a stroke transform, not a replacement for repainting a changing contour across a long shot.
Check / distinguish: Change only this geometry control and compare position, scale and result bounds.
- Angle
Stroke > AngleSets the angle of the element. Rotates the selected stroke or brush pattern. It matters most for non-circular brushes and directional painted shapes.
Check / distinguish: Change only this geometry control and compare position, scale and result bounds.
- Size
Stroke > SizeSets the overall size. Sets the brush diameter for the current paint operation. Match it to the defect: a brush much larger than the repair area tends to damage otherwise valid matte edges.
Check / distinguish: Change only this geometry control and compare position, scale and result bounds.
- Spacing
Stroke > SpacingSets the distance between brush samples along the stroke. Controls distance between brush samples along a stroke. Very large spacing creates visible dabs; very small spacing can increase processing cost without visible benefit.
Check / distinguish: Test one stroke and several adjacent frames before applying the workflow broadly.
Mask · Final mask
View controls, Level, Filter, Soft Edge and Invert process the final matte.
- Mask — Show View Controls
Mask > Mask — Show View ControlsShows Mask — Show View Controls in the Viewer for setup or diagnostics. Shows mask controls in the Viewer for setup and diagnostics. Hiding guides cleans up the Viewer but does not change rendered mask values.
Check / distinguish: Change only this control from its default state and compare before/after.
- Mask — Level
Mask > Mask — LevelSets the output level of the MaskPaint mask. Scales final mask coverage after painting and combination. Lowering Level weakens the entire MaskPaint output and should not be confused with changing one stroke Opacity.
Check / distinguish: Compare RGB and Alpha separately before and after changing this control.
- Mask — Filter
Mask > Mask — FilterChooses the filter used to smooth or process the MaskPaint mask. Chooses the filter used by common mask edge processing. Evaluate the final edge on the shot because different filters trade speed against edge character.
Check / distinguish: Inspect the edge at 100% Viewer scale and at the intended output size.
- Mask — Soft Edge
Mask > Mask — Soft EdgeSoftens the transition at the edge of the mask, matte or effect. Adds global feather to the resulting mask after painted geometry is combined. Use it sparingly after the individual brush edges already match the source matte.
Check / distinguish: Inspect the edge at 100% Viewer scale and at the intended output size.
- Mask — Invert
Mask > Mask — InvertInverts the MaskPaint result. Inverts final mask coverage after painting/combination. It changes inside/outside coverage and does not convert MaskPaint into an RGB image operation.
Check / distinguish: Toggle Invert and inspect the coverage in the Alpha Viewer.
Image · Output image
Output Size and Clipping Mode define the technical output frame.
- Image — Output Size: Default / Custom
Image > Image — Output Size: Default / CustomSets Image — Output Size to Default / Custom. Controls raster dimensions when the mask is materialized as an image/matte. Normal Effect Mask workflows generally use the composition-derived size unless a specific technical output is required.
Check / distinguish: Change only this geometry control and compare position, scale and result bounds.
- Image — Clipping Mode: None / Frame
Image > Image — Clipping Mode: None / FrameSets Image — Clipping Mode to None / Frame. Controls whether generated mask pixels can extend outside the frame/domain. Frame clipping is safer when large softness or transformed strokes reach beyond image bounds.
Check / distinguish: Check result resolution and bounds separately from visual shape.
Before adjusting the node
- Set Size, Softness, Opacity and Duration before drawing.
- Check Apply Mode: a white stroke and erase mode solve opposite tasks.
- Do not confuse base brush size with the scale of an existing stroke.
- For frame-specific cleanup, inspect the time range of each stroke.
- View the final matte by itself before using it to drive an effect.
Reference documentation
- Blackmagic Design · Fusion Visual Effects
Official Blackmagic learning material for Fusion logic, masks, compositing and core tools.
- Blackmagic Design · DaVinci Resolve support
Current Resolve/Fusion manuals and support material. Exact control names and placement can vary by version.
Examples
Patch a hole in an existing matte
Feed a Bitmap mask with a deliberate hole into MaskPaint and restore the missing coverage with a soft hand-painted stroke.
Starting conditions
DaVinci Resolve / Fusion 20 / 21 — verify in your installed build · Built-in Fusion tools only; no third-party plugins · Windows / macOS / Linux: live execution is not verified in this package
1920 × 1080 · 24 fps · 96 frames · Keep all image branches under the same project color-management setup. Mask streams are scalar coverage, not RGBA pictures.
- Numeric values are authored starting points. Verify node geometry, alpha and intermediate states instead of trusting only the final image.
Source material
- PLATE
Training plate used to visualize the affected region.
Replace with any opaque image.
- MASK_IMG
Black-and-white mask with an intentional circular hole.
Replace with any existing matte that has a local defect.
Nodes and connections
PLATE— Plate · MediaInMASK_IMG— MaskImage · MediaInBITMAP— BaseMatte · BitmapMaskPAINT— Patch · MaskPaintBLUR— LocalBlur · BlurOUT— MediaOut · MediaOut
| Source | Destination | Data |
|---|---|---|
Plate (PLATE)Output | LocalBlur (BLUR)Input | image |
MaskImage (MASK_IMG)Output | BaseMatte (BITMAP)Image | image |
BaseMatte (BITMAP)Mask | Patch (PAINT)EffectMask | mask |
Patch (PAINT)Mask | LocalBlur (BLUR)EffectMask | mask |
LocalBlur (BLUR)Output | MediaOut (OUT)Input | image |
Graph output: MediaOut (OUT)
Parameter values
- Patch (PAINT) / Stroke / Stroke type
"Stroke"The editable patch remains available for adjustment on every frame.
- BaseMatte (BITMAP) / Controls / Channel
"Luminance"Authored starting value for this exercise; verify the corresponding Inspector control and result in your installed Resolve build.
- Patch (PAINT) / Mask / Paint Mode
"Merge"Authored starting value for this exercise; verify the corresponding Inspector control and result in your installed Resolve build.
- Patch (PAINT) / Controls / Brush Shape
"Soft round"Authored starting value for this exercise; verify the corresponding Inspector control and result in your installed Resolve build.
- Patch (PAINT) / Controls / Size
0.055Authored starting value for this exercise; verify the corresponding Inspector control and result in your installed Resolve build.
- Patch (PAINT) / Controls / Softness
0.65Authored starting value for this exercise; verify the corresponding Inspector control and result in your installed Resolve build.
- Patch (PAINT) / Controls / Alpha
1Authored starting value for this exercise; verify the corresponding Inspector control and result in your installed Resolve build.
- Patch (PAINT) / Controls / Stroke Animation
"All Frames"A persistent editable Stroke applies across the full frame range; this is not the numeric Multistroke duration.
- LocalBlur (BLUR) / Controls / Blur Size
14Authored starting value for this exercise; verify the corresponding Inspector control and result in your installed Resolve build.
Reproduce the example
- Feed mask-with-hole.png into Bitmap and connect Bitmap.Mask to MaskPaint.EffectMask.
MaskPaint has one optional mask input that is combined with the painted mask.
Check: Before painting, MaskPaint reproduces the base mask including the hole.
- Choose a soft round brush with Alpha=1 and paint one or two white strokes inside the black hole.
MaskPaint works on a single-channel mask, so Alpha 1 adds coverage.
Check: The hole closes in the MaskPaint Viewer without changing the outside boundary.
- Connect MaskPaint to Blur.EffectMask and Plate to Blur.Input.
The mask stream now drives a real image effect instead of being treated as RGBA.
Check: Blur covers the complete white region including the repaired area.
- Temporarily bypass MaskPaint or view Bitmap and MaskPaint one after another.
The before/after comparison proves that the edit is local.
Check: Only the original hole changes.
- Zoom in and inspect the seam between the painted patch and the base mask.
A brush that is too hard or too soft creates a visible repair edge.
Check: Coverage remains continuous without a ring or gray dip.
Expected result
- BaseMatte (BITMAP) · frame 0
The base mask contains a dark circular hole inside a white region.
Alpha: Mask value is near 0 at the center of the defect.
- MediaOut (OUT) · frame 0
Blur now also affects the previously missing part of the mask.
Alpha: Plate alpha is unchanged; MaskPaint only drives Effect Mask.
When the result differs
- The brush paints colored RGB.
Cause: You used Paint instead of MaskPaint or are viewing the wrong node.
Correction: Confirm that the node is MaskPaint and its output is connected as a mask.
- The input mask disappears after painting.
Cause: The Paint Mode used to combine the incoming mask and painted strokes is wrong.
Correction: Return Paint Mode to Merge and compare Bitmap/MaskPaint again.
- The repair looks like a hard circle.
Cause: Brush Size/Softness does not match the existing mask edge.
Correction: Use a smaller brush and tune Softness while staying inside the defect.
Files for the example
References
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
General 2D Fusion node and masking workflow reference; NOT every Inspector parameter in these exercises.
- Blackmagic Design — Fusion 9 Tool Reference: Mask Paint
Mask Paint [PnM]. Confirms a single optional Effect Mask input, single-channel mask painting, stroke duration and mask-combine controls; NOT a Resolve 21 UI validation.
Single-frame mask cleanup
Create a local painted mask that exists for one frame only so a one-frame defect can be fixed without affecting its neighbors.
Starting conditions
DaVinci Resolve / Fusion 20 / 21 — verify in your installed build · Built-in Fusion tools only; no third-party plugins · Windows / macOS / Linux: live execution is not verified in this package
1920 × 1080 · 24 fps · 96 frames · Keep all image branches under the same project color-management setup. Mask streams are scalar coverage, not RGBA pictures.
- Numeric values are authored starting points. Verify node geometry, alpha and intermediate states instead of trusting only the final image.
Source material
- PLATE
Opaque training plate.
Replace with a clip where the mask defect appears for only one or a few frames.
Nodes and connections
PLATE— Plate · MediaInPAINT— FramePatch · MaskPaintGRADE— LocalGrade · ColorCorrectorOUT— MediaOut · MediaOut
| Source | Destination | Data |
|---|---|---|
Plate (PLATE)Output | LocalGrade (GRADE)Input | image |
FramePatch (PAINT)Mask | LocalGrade (GRADE)EffectMask | mask |
LocalGrade (GRADE)Output | MediaOut (OUT)Input | image |
Graph output: MediaOut (OUT)
Parameter values
- FramePatch (PAINT) / Controls / Stroke type
"Multistroke"Authored starting value for this exercise; verify the corresponding Inspector control and result in your installed Resolve build.
- FramePatch (PAINT) / Controls / Stroke Duration
1Authored starting value for this exercise; verify the corresponding Inspector control and result in your installed Resolve build.
- FramePatch (PAINT) / Controls / Size
0.035Authored starting value for this exercise; verify the corresponding Inspector control and result in your installed Resolve build.
- FramePatch (PAINT) / Controls / Softness
0.8Authored starting value for this exercise; verify the corresponding Inspector control and result in your installed Resolve build.
- FramePatch (PAINT) / Controls / Alpha
1Authored starting value for this exercise; verify the corresponding Inspector control and result in your installed Resolve build.
- LocalGrade (GRADE) / Color / Gain
1.18Authored starting value for this exercise; verify the corresponding Inspector control and result in your installed Resolve build.
Reproduce the example
- Connect Plate to ColorCorrector and MaskPaint to its Effect Mask.
MaskPaint can create a mask without an image input.
Check: With no strokes, no local correction is visible.
- Before painting, set Stroke Duration=1 and choose Multistroke.
For Multistroke the duration is set before applying the stroke; changing it later may not affect an existing stroke as expected.
Check: Inspector shows duration 1 before the first stroke.
- On frame 24 paint a short stroke near the center.
The stroke creates local mask coverage on the current frame only.
Check: The local grade is visible inside the stroke on frame 24.
- Move to frames 23 and 25 without painting another stroke.
Neighboring frames verify the temporal range of the mask.
Check: The local correction is absent on 23 and 25.
- If the defect continues, paint a separate stroke on each required frame or use an editable Vector stroke for longer animation.
Stroke type should match whether later timing and shape edits are required.
Check: Each cleanup stroke exists only on its intended frame.
Expected result
- MediaOut (OUT) · frame 24
The local correction appears inside the single painted stroke.
Alpha: Source image alpha is unchanged.
- MediaOut (OUT) · frame 25
The effect is absent on the neighboring frame when no new stroke was painted.
Alpha: Mask coverage returns to 0 in that area.
When the result differs
- The stroke stays on every frame.
Cause: Stroke Duration exceeded 1, or it was changed after the Multistroke was created.
Correction: Set Duration=1 before making a new stroke; recreate an unsuitable Multistroke if necessary.
- The stroke is difficult to reshape later.
Cause: Multistroke is optimized for speed and is less editable than a Vector stroke.
Correction: Use a Vector stroke if you need later shape or timing animation.
- The correction is not visible.
Cause: There is no stroke on the current frame or MaskPaint is not connected to Effect Mask.
Correction: Return to the painted frame and check the ColorCorrector blue input.
Files for the example
References
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
General 2D Fusion node and masking workflow reference; NOT every Inspector parameter in these exercises.
- Blackmagic Design — Fusion 9 Tool Reference: Mask Paint
Mask Paint [PnM]. Confirms a single optional Effect Mask input, single-channel mask painting, stroke duration and mask-combine controls; NOT a Resolve 21 UI validation.
Other outlines from the article
Roto edge repair
Patch a few frames after a tracked mask slips.
- MagicMask
- MaskPaint
- MatteControl
Animated hand reveal
Draw a stroke and animate Write On.
- MaskPaint
- Background
- Merge
Mistakes
- Confusing MaskPaint with the regular Paint node and expecting RGB painting.
- Treating an image input as mandatory even though MaskPaint can generate a mask with no image input.
- Changing Stroke Duration after a Multistroke has been applied and expecting full timing editability.
- Using Multistroke when detailed shape/timing animation will be required later.
- Ignoring Paint Mode when combining an incoming mask with new strokes.
Tips
- Set duration before painting Multistroke cleanup.
- Use Vector strokes and Modifiers/Keyframes when later editing matters.
- View MaskPaint by itself before driving another node’s Effect Mask.
- Match brush softness to the existing matte boundary rather than simply using the easiest brush to draw.
Workflow order
- Connect an existing mask to the single blue Effect Mask only when repairing an existing matte; leave the input empty when creating a mask from scratch.
- Choose Multistroke for fast cleanup or an editable Vector stroke when later timing/shape edits are required.
- Set Size, Softness, Alpha and Stroke Duration before painting a Multistroke.
- Paint in the Viewer while inspecting mask/alpha rather than judging RGB alone.
- Use Paint Mode, Level and Soft Edge after the stroke geometry itself is correct.
- For frame-by-frame cleanup, check neighboring frames and each stroke’s temporal range.
