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.
XListCreate
- inputs
- list
- count
- slot_map
Category♾️ Xz3r0/Workflow-Processing
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| inputs | COMFY_AUTOGROW_V3 | Connect 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)
| Name | Type | Description |
|---|---|---|
| list | COMFY_MATCHTYPE_V3 | The compact list holding every connected value, in port order. Length equals count. |
| count | INT | How many values are in the list. Connect to XListPull to choose how many output ports it shows. |
| slot_map | xlist_slot_map | Position 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. |