Mask Paint
Paint masks freehand with a brush. Quick and intuitive for organic selections.
Mask Paint lets you paint a mask directly by hand. The Brush tool paints white (adds to mask), and the Eraser paints black (removes from mask). Brush size, hardness, and opacity are all adjustable.
Mask Paint accepts two optional inputs: an image (for dimensions, overlay display, and alpha extraction) and a mask (for direct mask combination). When either input is connected, a combine mode selector appears. Connect the mask pin directly to combine with another mask node’s output (labeled “Input Mask”), or connect just an image to combine with its alpha channel (labeled “Input Alpha”). Combine modes include Replace (default), Union (add together), Subtract (remove from input), Intersect (keep overlap), and Difference. Without any input, you start with a blank canvas. The global invert toggle flips the entire output.
Parameters
Section titled “Parameters”Output
Canvas width (used when no image connected)
Canvas height (used when no image connected)
Strokes
Recorded brush stroke data
Global
How painted strokes combine with input image alpha
Invert the final mask output
UI
Brush (paint white) / Eraser (paint black)
Brush diameter in pixels
Edge falloff; 0=soft, 1=hard
Stroke opacity
Show source image behind mask in preview
Pins: image (optional IMAGE, for dimensions + overlay + alpha extraction), mask input (optional MASK, for direct mask combination — overrides alpha from image), mask output (MASK). The Input Alpha combo is shown when either input is connected; label shows "Input Mask" when the mask pin is connected, "Input Alpha" when only the image pin is connected.
Usage Tips
Section titled “Usage Tips”- Use a soft brush (low hardness) for gradual, feathered selections.
- Reduce opacity to build up mask density gradually with multiple strokes.
- Paint on top of an AI-generated mask to fix edges that need manual correction.
- Use Union mode to add painted regions to an existing mask, or Subtract to carve out areas from it.
- Connect a mask input directly to combine with another mask node’s output, or connect an image to work with its alpha channel.