🔶 Any array2input -> 1 Input
Pull one element out of an array by index
- array
- ANY
If Any input2array (Big) is how you build a bundle of candidate values, this is how you pick exactly one of them back out. Feed in an array, set an index, get a single value out - the node that actually implements the "swiftly switch between processes to test things" idea the README describes for this pack's array tooling.
What it does
array (required, ARRAY type) has to come from one of the pack's own array-building nodes - Any input2array (Big), most naturally. input_nr (INT, default 1, range 1–9) is which slot to read: 1 pulls whatever's connected at position 1 in the source array, 2 pulls position 2, and so on. The single output, ANY, is a wildcard type carrying whatever value lived at that index - same type it went in as, whether that's an IMAGE, a MODEL, a STRING, anything.
The optional input_nr_override (INT) is the part that turns this from a static picker into something you can drive dynamically. Wire in an INT from elsewhere - the Number Counter node's INT output is a natural fit - and the selection index changes automatically as that value changes, instead of you manually clicking through input_nr by hand. That's the mechanism behind cycling through several checkpoints or prompts across an animation sequence: build the array once, then let a counter step through which one is active frame by frame.
Why you'd reach for it
Anywhere you've got several candidate values and want to switch between them by changing one number instead of rewiring the graph - comparing checkpoints, cycling prompt variants, or driving a scheduled change across an animated sequence via input_nr_override. If you only ever need one fixed value, you don't need the array machinery at all; just wire the source directly to where it's needed.
Installing it
Via ComfyUI Manager: search "Chaosaiart-Nodes," or "Install via Git URL" with https://github.com/chaosaiart/Chaosaiart-Nodes, then restart. Manually: cd ComfyUI/custom_nodes && git clone https://github.com/chaosaiart/Chaosaiart-Nodes, restart ComfyUI. Linux needs pip install opencv-python and pip install tqdm (venv active first) for the pack as a whole to load without errors. Windows has a bundled Install_windows script. No model downloads.
Troubleshooting
If ANY comes out empty or wrong, first check that input_nr (or its override) is actually within the range of slots you filled on the source array node - asking for index 7 when you only wired three inputs into Any input2array isn't going to give you anything meaningful. If input_nr_override seems to be ignored, note that an override input generally takes priority over the static widget when it's connected - so if you're trying to set the index manually and it's not sticking, check whether something's still wired into the override slot from an earlier version of the graph. And because array only accepts the pack's own ARRAY type, you can't feed this node a Python list or an array-type output from a different node pack - it has to originate from Chaosaiart's own array builder.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| input_nr | INT | 11–9 | — |
| array | ARRAY | — | |
| input_nr_overrideopt | INT | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| ANY | * | — |