ComfyUI Node

XListCreate

Pack multiple connected inputs into one compact list, skipping empty ports. Outputs list (connected values in order), count (how many), and slot_map (where each item came from, for XListRestore). Pair with XListPull to split the list back into separate ports.

By Xz3r0-M·Created 7 months ago·Updated about 10 hours ago· 12
XListCreate
  • inputs
  • list
  • count
  • slot_map
Category♾️ Xz3r0/Workflow-Processing

Inputs (1)

NameTypeDefaultDescription
inputsCOMFY_AUTOGROW_V3Connect single values to add them to the list. A multi-value list is flattened into the output list, but XListRestore cannot put several items back into one slot — split lists into single values when you plan to restore positions.

Outputs (3)

NameTypeDescription
listCOMFY_MATCHTYPE_V3The compact list holding every connected value, in port order. Length equals count.
countINTHow many values are in the list. Connect to XListPull to choose how many output ports it shows.
slot_mapxlist_slot_mapPosition record only (no media). Tracks which input port each list item came from. Connect to XListRestore to put items back into their original ports. Each input port must carry a single value; multi-value lists cannot be restored.