ComfyUI Node
Card Edit Region - JSON and Mask
A ComfyUI node in MOSS-Image/Layout with 11 inputs and 4 outputs.
Card Edit Region - JSON and Mask
- source_image
- edit_boxes
- edit_json
- edit_mask
- edit_instruction
- selected_region
◄layout_json—►
◄canvas_width—►
◄canvas_height—►
◄region▾►
◄protect_boxfalse►
◄edit_instructionChange only the specified clothing. Keep all other details unchanged.►
◄instruction_modeCustom edit►
◄outfit_description—►
◄portrait_clothing—►
CategoryMOSS-Image/Layout
Inputs (11)
| Name | Type | Default | Description |
|---|---|---|---|
| source_image | IMAGE | — | |
| layout_json | STRING | — | |
| canvas_width | INT | — | |
| canvas_height | INT | — | |
| region | COMBO | 6 options: Portrait, Body reference, Clothed front, Clothed back, Clothed front and back, All body panels | |
| protect_box | BOOLEAN | false | Off: edit inside the drawn box. On: preserve that box and edit the surrounding selected panel. |
| edit_instruction | STRING | Change only the specified clothing. Keep all other details unchanged. | — |
| edit_boxesopt | BOUNDING_BOX | Optional single rectangle from native Create Bounding Boxes, inside the selected panel. The same box controls the JSON and the sampling mask. | |
| instruction_modeopt | COMBO | Custom edit | 3 options: Custom edit, Complete portrait framing, Selected outfit |
| outfit_descriptionopt | STRING | — | |
| portrait_clothingopt | STRING | — |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| edit_json | STRING | — |
| edit_mask | MASK | — |
| edit_instruction | STRING | — |
| selected_region | STRING | — |