◯ANY → Dict🗂️ [OLD]
The legacy ANY → Dict node, explained
- dict
- value
- dict
What's this old-timer doing in the menu?
◯ANY → Dict🗂️ [OLD] is the backwards-compatibility alias of the modern ◯ANY → Dict🗂️ (DictAddAny) node. It exists because these dict nodes were born inside Lex Darlog's String Constructor pack, and when they split into the 🗂️ Dict Tools pack the old IDs stayed registered so saved workflows don't die. You probably don't need to add this node to anything new - but if a downloaded workflow references it, it's nice to know it's not a trap.
What it does
The job is simple: add any single value to a dict under a name. The name is the key, and "any" means the value's type doesn't matter - a string, a latent, a model, a conditioning. That's the node's whole point in a bus workflow: you can wrap arbitrary pieces of a pipeline into one connection and carry them around as a single DICT wire.
The inputs:
- name - the key to store the value under.
- value - the any-type item to store. Optional; if you leave it disconnected, the node mostly just passes a dict through.
- dict - optional. Pass an existing DICT in and the new item is merged on top, producing a new dict with both.
The dict output is the result. Every Add node in this pack returns a new dict - the outputs are immutable frozendicts so nothing can silently mutate shared state - so you always thread the output forward.
How it maps to the modern node
Under the hood it just calls DictAddAny with name mapped to key. One behavioral detail worth knowing: this legacy version has no cleanup_key toggle. It strips the key by default (the modern default is the same), but you can't turn it off here - so a key with a meaningful leading space isn't something you can store through this node.
Installing it
Part of 🗂️ Dict Tools. ComfyUI Manager, search Dict Tools (Lex-DRL/ComfyUI-DictTools), or:
cd ComfyUI/custom_nodes
git clone https://github.com/Lex-DRL/ComfyUI-DictTools
Restart ComfyUI. Only dependency is frozendict; no models, no heavy installs. The pack targets ComfyUI >= 0.18.0 - update ComfyUI if the nodes don't register after install.
What to actually do
For new graphs, grab ◯ANY → Dict🗂️ (DictAddAny) instead - same behavior, current name, plus a cleanup_key toggle and cleaner tooltips. If an old workflow hands you this node, leave it alone; it works fine. And if you find yourself adding arbitrary values a lot, remember the type-aware Add nodes (DictAddString, DictAddLatent, DictAddModel, and friends) exist too - they give you strict typing on extraction, which is the whole reason to use dicts over a magic-routing node in the first place.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| name | STRING | Key (name) of the item inserted into the dict. | |
| dictopt | DICT | An (optional) Dictionary to work with. | |
| valueopt | * | The actual any-type item to add into the Dict. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| dict | DICT | — |