Nodes/Chaosaiart-Nodes/🔶 Any input2array (Big)
ComfyUI Node

🔶 Any input2array (Big)

Bundle up to 9 arbitrary inputs into one array wire

By chaosaiart·Created 2 years ago·Updated about a year ago· 117
🔶 Any input2array (Big)
  • input_1
  • input_2
  • input_3
  • input_4
  • input_5
  • input_6
  • input_7
  • input_8
  • input_9
  • ARRAY

The README frames this pack's array nodes as a way to "utilize arrays to enhance the organization of your workspace, or swiftly switch between processes to test things," and this node is where an array actually gets built. Feed it up to nine inputs of any type, and it packs them into a single ARRAY output - the thing you then hand to one of the array-unpacking nodes elsewhere in the pack.

What it does

input_1 is required and typed * - ComfyUI's wildcard, meaning it'll accept a connection from basically anything: an IMAGE, a MODEL, a STRING, whatever. input_2 through input_9 are optional, same wildcard type. Wire in as few or as many as you need - you don't have to fill all nine. The single output is ARRAY, a pack-specific bundle type that only Chaosaiart's own array nodes know how to unpack.

There's no type checking or coercion happening here; it's a container, not a transformer. What goes in comes back out unchanged when something downstream reads it - the value at position 1 stays whatever type input_1 was, and so on for each slot.

Why you'd reach for it

The practical use is switching between several candidate values without rewiring your graph every time. Say you want to A/B five different checkpoints, or five prompt variants - instead of physically disconnecting and reconnecting wires each time you want to test a different one, wire all five into this node once, then use one of the array-indexing nodes downstream (Any array2input -> 1 Input, driven by a widget or a Number Counter) to pick which one is actually live. The switching happens by changing a number, not by touching a wire.

It pairs naturally with the "unpack everything at once" nodes too - build an array here, then send it to Any array2input -> ALL (Big/Small) if you want every element available as its own output simultaneously rather than picking just one.

Installing it

Through ComfyUI Manager: search "Chaosaiart-Nodes," or "Install via Git URL" with https://github.com/chaosaiart/Chaosaiart-Nodes, then restart ComfyUI. Manually: cd ComfyUI/custom_nodes && git clone https://github.com/chaosaiart/Chaosaiart-Nodes, restart. Linux needs pip install opencv-python and pip install tqdm (venv active first) for the pack to import - this node doesn't use either directly, but the pack loads as one module and other nodes in it do. Windows has a bundled Install_windows script. No model downloads.

Troubleshooting

If a downstream array-reading node errors on a type mismatch, remember this node doesn't enforce that every slot holds the same type - you can genuinely mix a MODEL in slot 1 and a STRING in slot 3, and the node building the array won't stop you. The error will surface downstream instead, wherever something tries to use a value as the wrong type - so if that happens, trace back to which index actually holds what, rather than assuming the array node itself is broken. And since ARRAY is a pack-specific type, you can't connect this node's output to anything outside Chaosaiart-Nodes expecting a list or array - it only talks to the pack's own array/switch nodes.

Category🔶Chaosaiart/switch

Inputs (9)

NameTypeDefaultDescription
input_1*—
input_2opt*—
input_3opt*—
input_4opt*—
input_5opt*—
input_6opt*—
input_7opt*—
input_8opt*—
input_9opt*—

Outputs (1)

NameTypeDescription
ARRAYARRAY—