ComfyUI Node
LC Create Mask ๐ผ๏ธโ๏ธ
Draw a mask on the node: click to add points (no limit), drag to reshape, or use the pencil for freehand. Feather, invert, and opacity built in.
LC Create Mask ๐ผ๏ธโ๏ธ
- image
- image
- mask
โblockfalseโบ
โpencilfalseโบ
โsmoothfalseโบ
โinvertfalseโบ
โfeather0.0โบ
โopacity1.00โบ
โoverlay_opacity0.45โบ
โpoints[]โบ
CategoryLC MaskMaker/mask
Inputs (9)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | Image to draw the mask on. | |
| block | BOOLEAN | false | if_empty_mask: when nothing is drawn (no shape, or an all-black mask), everything downstream of this node is stopped so you can draw, then queue again. never: always passes the image and mask through. |
| pencil | BOOLEAN | false | points: click to add, drag to move, shift+click removes. pencil: draw freehand. |
| smooth | BOOLEAN | false | smooth curves through the points instead of straight edges. |
| invert | BOOLEAN | false | Flip the mask (outside becomes white). |
| feather | FLOAT | 0.00โ200 | Edge softness in pixels (gaussian blur radius). |
| opacity | FLOAT | 1.000โ1 | Mask strength. Scales the mask values (1.0 = solid). |
| overlay_opacity | FLOAT | 0.450โ1 | How strongly the mask shows over the preview on the node. Display only. |
| points | STRING | [] | Internal: normalized point list. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | โ |
| mask | MASK | โ |