values
All the values out of a dict in one shot — no keys attached
- input_dict
- LIST
Sometimes you don't care what a dict is called - you just want everything that's in it. values (Basic data handling: DictValues) takes a dictionary and returns a plain list of all its values, keys thrown away. It's the visual-graph equivalent of Python's dict.values(), and it's how you turn a DICT back into a shape you can iterate over.
One required input, input_dict (a DICT), and one output: a LIST containing every value from the dict, in insertion order.
That output type is worth stopping on, because it's the whole point of the node. DICT is a custom type that only this pack speaks. LIST - here meaning a Python list passed as a single variable - is also a custom type in this pack, but it's a much more connected one: the pack's list nodes (ListGetItem, ListLength, ListAppend, ListFirst, ListLast, and so on) all talk it. So DictValues is the bridge that gets your dict payloads out of "single opaque blob" land and into "stuff I can slice, index, and measure" land.
Why you'd reach for it
The classic move: you've built a dict of results - say a filename mapped to a success flag - and now you want to run them through something that processes a list. DictValues flattens the dict to its contents, then you can feed that LIST into the pack's list tools or convert it with ListToDataList if you need ComfyUI to process items individually.
Order matters more than people expect, so here's the fine print: Python dicts preserve insertion order, and this node respects it. If you add values in a specific sequence, they come out in that sequence. If you need the order of the keys as well - or you actually need the pairs - use DictKeys or DictItems from the same pack instead.
Installing it
This node is part of the Basic data handling pack by StableLlama. Through ComfyUI Manager, search "Basic data handling", install, restart. Or:
cd ComfyUI/custom_nodes
git clone https://github.com/StableLlama/ComfyUI-basic_data_handling
then restart. No dependencies, no requirements.txt, no model files. Plain Python.
Troubleshooting
If the LIST output won't plug into the node you expected, check what that node expects - most native ComfyUI nodes don't know the LIST type. Convert with this pack's ListToDataList when you need individual-item processing. And if you find values missing, remember the ordering guarantee only covers insertion order - you can't rely on it matching the order you wrote the keys in some other node if you built the dict in a different sequence.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| input_dict | DICT | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| LIST | LIST | — |