Nodes/ComfyUI-BrainDead/BD Parts Compose
ComfyUI Node

BD Parts Compose

Assemble all parts in a PARTS_BUNDLE back into a flat image at output_size. Each part is placed at its scaled xyxy position. Back-to-front order by depth_median (larger = farther; closer parts paint on top). Standard alpha compositing — every part's RGBA mask drives the blend.

By BizaNator·Created 7 months ago·Updated 16 days ago· 14
BD Parts Compose
  • parts
  • image
  • alpha
output_size0
triggertrue
Category🧠BrainDead/Segmentation

Inputs (3)

NameTypeDefaultDescription
partsPARTS_BUNDLE
output_sizeoptINT00–8192Max side length of output canvas. 0 = use frame_size as-is. Set to e.g. 3072 if you upscaled per-part 3x.
triggeroptBOOLEANtrueIf false, returns blank canvas — useful when piping is_last from an iterator to delay composite until the final pass.

Outputs (2)

NameTypeDescription
imageIMAGE
alphaMASK