ComfyUI Node
Mask Expand Without Overlap
A ComfyUI node in MultiMaskOps with 8 inputs and 1 output.
Mask Expand Without Overlap
- masks
- masks
◄expand_pixels10►
◄tapered_cornerstrue►
◄feather_amount0►
◄feather_mode▾►
◄overlap_policy▾►
◄subtract_hardtrue►
◄threshold0.50►
CategoryMultiMaskOps
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| masks | MASK | A list of masks to expand/feather while preventing overlap. | |
| expand_pixels | INT | 100–4096 | Pixels to grow each mask (native GrowMask method). 0 = no expansion. |
| tapered_corners | BOOLEAN | true | Rounds the corners of the expansion (matches native GrowMask). True = rounded growth, False = square growth. |
| feather_amount | INT | 00–4096 | Gaussian blur radius for soft edges (used as sigma, matches KJNodes GrowMaskWithBlur). 0 = no feather. |
| feather_mode | COMBO | How feathering interacts with neighbors. cut_feather = feather then subtract neighbors (hard seam at neighbor edge). preserve_feather = subtract, feather, subtract again (soft seam that never leaks into neighbors). | |
| overlap_policy | COMBO | How expansions interact. allow = may overlap freely in empty space (only original regions protected). retreat = contested empty pixels cleared in both masks (clean seam). priority = earlier masks in the list win contested pixels (gap-free). | |
| subtract_hard | BOOLEAN | true | Flatten the protected/subtracted region so masks can never leave any nonzero value inside another mask's area. Recommended on. |
| threshold | FLOAT | 0.500–1 | Binarization cutoff used when building the hard protection regions. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| masks | MASK | — |