π Any From List
Pull one item out of a list, any type
- any
- any
This is the type-agnostic sibling of the pack's Image From List node. Same idea - reach into a list and take the item at a given index - except this one doesn't care what's in the list. Strings, ints, floats, latents, conditioning, masks, whatever's flowing. If it's a list and you want one specific element out of it, this is the node. Think list[index], dropped into your graph, working on anything.
You'll want it whenever some upstream node hands you a list and the next node only wants a single value. It's the counterpart to Any List (which builds a list) and Filter List (which trims one down).
How it works
There's a distinction in ComfyUI worth keeping straight: a list is a series of separate items the graph iterates over, as opposed to a batched tensor that gets processed in one shot. This node works on the list kind. It walks to position index and returns just that one item, keeping its original type via ComfyUI's wildcard (*) so it slots into whatever comes next.
Indexing is zero-based - index 0 is the first item, index 3 is the fourth.
The inputs and outputs that matter
Two inputs, both required:
any- the list to pick from.index(INT, default 0) - which element you want.
One output, any - the single item at that index, ready to wire onward at its native type.
How to install it
Comes with the SDVN pack. ComfyUI Manager, search SDVN_Comfy_node; or:
cd ComfyUI/custom_nodes
git clone https://github.com/StableDiffusionVN/SDVN_Comfy_node
pip install -r custom_nodes/SDVN_Comfy_node/requirements.txt
from the ComfyUI root, then restart. No models, no dependencies - pure plumbing.
Common issues & troubleshooting
Index out of range. Ask for index 9 on a five-item list and there's nothing to return. Keep the index inside the list's length, especially when the index is being set programmatically.
It's not actually a list. If the upstream node output a single value rather than a list, or a batched tensor instead of a ComfyUI list, this won't do what you expect. Confirm what you're feeding it is genuinely a list. The pack's Any List and Any Repeat both produce proper lists if you need to build one first.
Type surprises downstream. Because the output type is a wildcard, ComfyUI won't stop you wiring a string into a slot that wanted an int. The node passes the item through faithfully; if the next node complains, the mismatch was already in your list, not created here.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| index | INT | 0 | β |
| any | * | β |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| any | * | β |