Skip to content

Magic Wand

Magic Wand
Mask

Flood-fill selection by color: pick seed points and Magic Wand selects connected regions of similar color.

The Magic Wand node applied to a source image: original (left) and result (right).
Side-by-side comparison: the original image on the left and the same image after the Magic Wand node on the right.

Unlike Color Range, which selects every matching pixel in the image, Magic Wand selects only pixels connected to a seed, so it can remove a background without touching interior areas of the same color. Mode makes the selection transparent (Remove) or keeps only it (Keep), and the selection is also published on the Mask output.

On a texture set or a library, a Map row picks the one map Magic Wand selects on, such as the Base Color. The output is the whole set cut by the selection: every map is kept and the set’s Opacity is multiplied by the selection, so a click on the Base Color cuts the whole material out. The Mask output carries the selection. A set without the map passes through uncut, with a note, and its mask selects nothing. See Changing one map.

Pins

ImagePixels or Texture
InputRequired
ImagePixels or Texture
Output
MaskMask
Output

Selection

MapChoice
Default: Base Color
Texture set or library wired

Which map of the texture set this node reads to make its selection. Shown while a texture set or a library is wired

  • Base ColorWork on the set's Base Color. The first map for the color and tone nodes.
  • NormalWork on the set's Normal. Offered on Normal Map (rescale its intensity) and the nodes that read a map into a selection; a color node never edits a direction.
  • RoughnessWork on the set's Roughness, a linear 0 to 1 map with one channel.
  • MetallicWork on the set's Metallic, a linear 0 to 1 map with one channel.
  • Ambient OcclusionWork on the set's Ambient Occlusion, a linear 0 to 1 map with one channel.
  • HeightWork on the set's Height, a linear map that can pass 0 and 1.
  • OpacityNever offered: the Opacity is the set's cutout, which Mask Apply edits.
  • EmissiveWork on the set's Emissive color.
Seed Points (%)Data
Default: 1 seed point

Seed point list ({x, y} in %, edited via the position picker widget)

ToleranceNumber
Default: 15.0 Range: 0.0–100.0

How far from the seed color to include. Higher = selects more similar pixels

SoftnessNumber
Default: 10.0 Range: 0.0–100.0

Gradient falloff at the selection boundary. 0 = hard edge, higher = smoother transition

Refine

ExpandInteger · px/%
Default: 0 Range: -50–50 px / -100–100%

Grow or shrink the selection boundary. Positive = expand (dilate), negative = contract (erode)

FeatherNumber · px/%
Default: 0.0 Range: 0.0–50.0 px / 0–100%

Blur the selection mask edges. Higher = softer, more gradual edges

Output

ModeChoice
Default: Remove
  • RemoveMake selected pixels transparent, removing the flood-filled region.
  • KeepKeep only the selected pixels, so everything outside the flood fill becomes transparent.
  • Click the crosshair button, then click the preview to place seed points, or Ctrl+Click the preview to add one directly. Add seeds (up to 64) to select disconnected regions.
  • Start with a low Tolerance and increase it until the full background is captured.
  • Use a small positive Expand to push the selection edge past fringing artifacts.