Skip to content

Mask Boolean

Node icon
Mask

Combines two masks with boolean operations: union, subtract, intersect, or difference.

Mask Boolean takes two mask inputs and combines them using set operations. Union merges both masks together. Subtract removes the second mask from the first. Intersect keeps only the overlap. Difference keeps areas where the masks don’t overlap.

This lets you build complex selections from simple building blocks.

Pins

Mask AMask
InputRequired
Mask BMask
InputRequired
MaskMask
Output

Mask

OperationChoice
Default: Union

Boolean operation combining the two mask inputs

  • UnionCombine both masks: white wherever either mask is white.
  • SubtractRemove mask B from mask A: white only where A is white and B is black.
  • IntersectKeep only the overlap: white only where both masks are white.
  • DifferenceKeep non-overlapping areas: white where the masks differ.
Mask FromChoice
Default: Luminance
Color image connected to the mask input

How the connected color image is read as a mask. Luminance: the image's brightness. Alpha: the image's transparency. Red / Green / Blue: a single channel

  • LuminanceRead the image's brightness as the mask. The default.
  • AlphaRead the image's transparency as the mask.
  • RedUse the red channel as the mask.
  • GreenUse the green channel as the mask.
  • BlueUse the blue channel as the mask.
Mask FitChoice
Default: Stretch
Mask connected

How Mask B is mapped when it doesn't match Mask A

  • None (native size)Center the mask at its native size, with no resizing. Unmasked regions are unaffected.
  • StretchStretch the mask to exactly match the image dimensions. May distort the mask shape.
  • Fit (letterbox)Scale the mask to fit inside the image, preserving aspect ratio. Letterboxes where needed.
  • Fill (crop)Scale the mask to fill the image, preserving aspect ratio. Crops edges if aspect ratios differ.
  • Use Subtract to punch holes in a mask. For example, remove an inner area from an outer selection.
  • Intersect is useful for restricting one mask to the area covered by another.
  • Chain multiple Mask Boolean nodes for complex multi-region selections.
  • Difference keeps areas where the two masks don’t overlap, useful for ring or outline selections.