Nodes/MOSS Layout YDR/MOSS Layout YDR
ComfyUI Node

MOSS Layout YDR

A ComfyUI node in MOSS/Layout with 16 inputs and 8 outputs.

By yndear41·Created 12 days ago·Updated 11 days ago· 3
MOSS Layout YDR
  • background
  • background_resize
  • prompt
  • width
  • height
  • bboxes
  • draft_json
  • moss_elements
  • summary_caption
  • character_boxes
◄summary►
◄aspect_ratio▾►
◄width1024►
◄height1024►
◄resolution▾►
◄megapixels1.00►
◄dimension_multiple16►
◄portraitfalse►
◄editor_state{}►
◄layout_text—►
◄summary_meta►
◄input_width—►
◄input_height—►
◄input_megapixels—►
CategoryMOSS/Layout

Inputs (16)

NameTypeDefaultDescription
summarySTRINGDescribe the full image: scene, composition, lighting, style, and relationships between elements.
aspect_ratioCOMBOChoose the proportions of the layout board. Select Custom to enter an exact width and height.
widthINT102464–16384Target canvas width in pixels. Editing width or height switches the ratio to Custom.
heightINT102464–16384Target canvas height in pixels. Editing width or height switches the ratio to Custom.
resolutionCOMBOChoose a target image area in megapixels. Custom enables the editable MP field.
megapixelsFLOAT1.000.25–16Target image area in megapixels. The MOSS-safe minimum dimension multiple is 16.
dimension_multipleCOMBO16Legacy workflow compatibility field. The value is ignored; dimensions are aligned automatically to 16 px.
portraitBOOLEANfalseInternal orientation state controlled by the swap button.
editor_stateSTRING{}Saved box editor data. It is tucked under Advanced and normally does not need editing.
layout_textoptSTRINGImport a MOSS layout JSON string or one item per line.
backgroundoptIMAGEOptional board image. It replaces the automatic preview while connected.
background_resizeoptIMAGEOptional board image. It replaces the automatic preview and sets the custom aspect ratio; megapixels scale its size.
summary_metaoptSTRINGOptional comma-separated medium or genre tags written to summary.meta.
input_widthoptINTOptional wired width override. When only one dimension is connected, the selected aspect ratio supplies the other.
input_heightoptINTOptional wired height override. When only one dimension is connected, the selected aspect ratio supplies the other.
input_megapixelsoptFLOATOptional wired megapixel override. Background Resize keeps its source ratio and scales to this area.

Outputs (8)

NameTypeDescription
promptSTRING—
widthINT—
heightINT—
bboxesARRAY—
draft_jsonSTRING—
moss_elementsARRAY—
summary_captionSTRING—
character_boxesSTRING—