Nodes/ComfyUI-MOSS-Card-Layout/Card Edit Region - JSON and Mask
ComfyUI Node

Card Edit Region - JSON and Mask

A ComfyUI node in MOSS-Image/Layout with 11 inputs and 4 outputs.

By Coffmeteor·Created a day ago·Updated about 23 hours ago· 1
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)

NameTypeDefaultDescription
source_imageIMAGE—
layout_jsonSTRING—
canvas_widthINT—
canvas_heightINT—
regionCOMBO6 options: Portrait, Body reference, Clothed front, Clothed back, Clothed front and back, All body panels
protect_boxBOOLEANfalseOff: edit inside the drawn box. On: preserve that box and edit the surrounding selected panel.
edit_instructionSTRINGChange only the specified clothing. Keep all other details unchanged.—
edit_boxesoptBOUNDING_BOXOptional single rectangle from native Create Bounding Boxes, inside the selected panel. The same box controls the JSON and the sampling mask.
instruction_modeoptCOMBOCustom edit3 options: Custom edit, Complete portrait framing, Selected outfit
outfit_descriptionoptSTRING—
portrait_clothingoptSTRING—

Outputs (4)

NameTypeDescription
edit_jsonSTRING—
edit_maskMASK—
edit_instructionSTRING—
selected_regionSTRING—