ComfyUI Node
😺NKD Mask Painter
Paint a mask on top of any procedural image using ComfyUI's native mask editor. Outputs the image, the mask and its inverse. Instantiate the node multiple times for independent masks.
😺NKD Mask Painter
- images
- mask
- IMAGE
- MASK
- MASK (inverted)
◄image►
◄on_image_changeclear_mask►
◄mask_input_modeUse as start►
Category😺NKD Nodes/Masking
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | — | |
| image | STRING | — | |
| on_image_change | COMBO | clear_mask | clear_mask: wipe the painted mask when the input image changes. keep_mask: keep the painted mask even when the input image changes. |
| mask_input_mode | COMBO | Use as start | How to combine the optional `mask` input with what you have painted (all modes only act when the upstream content actually changes): Use as start: import the upstream mask only if nothing is painted yet. After that your manual edits stick, even if upstream changes. Replace: overwrite the painted mask with upstream every time upstream produces a different mask. Add: union — adds upstream to the painted mask. The added area becomes part of your canvas and can be edited freely. Subtract: removes the upstream mask from the painted one. Useful to exclude regions marked by upstream. Intersect: keeps only the area where both painted and upstream masks overlap. Disconnected: the input is connected but ignored. |
| maskopt | MASK | Optional mask used as a starting point. When it changes, it is imported into the editor canvas so you can modify it by adding or erasing parts. While it stays the same, your manual edits take precedence. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |
| MASK | MASK | — |
| MASK (inverted) | MASK | — |