ComfyUI Node
XListRestore
Put list items back into their original slots after processing. XListCreate packs only the connected inputs into a compact list; this node uses the saved slot map to place every processed item back where it came from. Unused slots become None, so downstream nodes that read items by position stay aligned.
XListRestore
- list_input
- slot_map
- list
- count
Category♾️ Xz3r0/Workflow-Processing
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| list_input | COMFY_MATCHTYPE_V3 | The compact list to restore, usually the output of a batch-processing node (e.g. XImageResize). Its items originally come from XListCreate. | |
| slot_map | xlist_slot_map | The position record saved by XListCreate: which item belongs to which slot. Connect XListCreate's slot_map output here. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| list | COMFY_MATCHTYPE_V3 | The restored list with items back in their original positions. Empty slots are None. Length equals the count output. |
| count | INT | Total number of slots (including empty ones). Connect to XListPull / XListToPipe to expand their ports. |