Nodes/ComfyUI-Apt_Preset/type_ArrayToList
ComfyUI Node

type_ArrayToList

The bridge from this pack's arrays to real ComfyUI lists

By cardenluo·Created 2 years ago·Updated a day ago· 324
type_ArrayToList
  • array
  • list

This is the node that fixes the most common "why won't this socket connect" moment in this pack. type_ArrayToList takes the pack's array - a single wire carrying a Python list as one object - and converts it into a true ComfyUI list, the kind that carries many items in parallel on one socket. If you've gathered values with create_array or flow_stage_list and a downstream node is pointing at your array socket like it's broken, this is the adapter you're missing.

How it works

As a conversion node it's almost boring: input array (a LIST), and the node returns the same items but marked is_list - which changes how ComfyUI treats the socket from "one container object" to "N items available individually." The data itself doesn't change; the shape of the connection does. That's exactly why it exists. The pack authors split the two shapes deliberately: arrays are handy to carry around on one wire, lists are handy to iterate over, and neither converts into the other for free - hence this node (and its mirror type_ListToArray).

When to reach for it

Think of it as the "unwrap" step. A flow_stage_list gives you both shapes at once, but when you only have the array form - say, from create_array or array_Merge - and the target node wants to fan out over items (a batch processor, a per-item prompt consumer), drop this in between. If you've built a list and want to fold it back into one wire, type_ListToArray is the return trip.

Install

Part of ComfyUI-Apt_Preset: ComfyUI Manager → "ComfyUI-Apt_Preset", or git clone https://github.com/cardenluo/ComfyUI-Apt_Preset into custom_nodes, run install.bat, restart. No models, no deps beyond the pack's. The trap to avoid is using it as a merge - it doesn't combine anything, it just re-shapes one array into list form; if you wanted several arrays joined, that's array_Merge first, conversion after.

CategoryApt_Preset/data/list|Array

Inputs (1)

NameTypeDefaultDescription
arrayLIST

Outputs (1)

NameTypeDescription
list*