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.

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

Inputs (2)

NameTypeDefaultDescription
list_inputCOMFY_MATCHTYPE_V3The compact list to restore, usually the output of a batch-processing node (e.g. XImageResize). Its items originally come from XListCreate.
slot_mapxlist_slot_mapThe position record saved by XListCreate: which item belongs to which slot. Connect XListCreate's slot_map output here.

Outputs (2)

NameTypeDescription
listCOMFY_MATCHTYPE_V3The restored list with items back in their original positions. Empty slots are None. Length equals the count output.
countINTTotal number of slots (including empty ones). Connect to XListPull / XListToPipe to expand their ports.