Nodes/ComfyUI_Eugene_Nodes/Dictionary Update (10 pairs)
ComfyUI Node

Dictionary Update (10 pairs)

Ten Pairs, One Node

By JEONG-JIWOO·Created 2 years ago·Updated 8 months ago· 2
Dictionary Update (10 pairs)
  • input_dict
  • DICT
key1
value1
key2
value2
key3
value3
key4
value4
key5
value5
key6
value6
key7
value7
key8
value8
key9
value9
key10
value10

Dictionary Update (10 pairs) is the big sibling in Eugene's dictionary trio - the same idea as DictUpdate1 and DictUpdate5, just with room for ten key/value pairs in a single node. If you're building a full prompt-token library in one place - character, outfit, pose, style, lighting, camera, quality tags, a couple of negatives - this is the node you put at the top of the graph and never think about again.

How it works

No new mechanics, just more slots. It copies the optional input_dict, writes every pair with a non-empty key and non-empty value, and outputs a single DICT. Every slot from key2/value2 down is optional, and - same rule as the smaller siblings - empty pairs are silently skipped. Feed it nothing as input and it starts from an empty dictionary.

A note on the required fields: only key1/value1 are marked required in the schema, but they obey the same empty-is-ignored rule as everything else. The whole node behaves as "ten optional pairs," and that's exactly how you should treat it: fill as many as you need, leave the rest blank, and the dictionary only contains what you actually set.

Where it fits

This is the node for people who want their reusable prompt vocabulary visible. One DictUpdate10 holding ten named tokens reads like a settings panel, and every DictTemplate (or LoRA loader prefix) that references {character}, {style}, {quality} downstream stays in sync when you edit it. For genuinely huge dictionaries, chain it after a DictUpdate5 rather than hunting for a bigger single node.

Installing it

Same pack as always:

cd ComfyUI/custom_nodes
git clone https://github.com/JEONG-JIWOO/ComfyUI_Eugene_Nodes

Restart ComfyUI, or install via ComfyUI Manager (search "Eugene Nodes"). No pip requirements, no model downloads.

Where people get burned

The usual suspects, with a new twist. The custom DICT type means the output only wires to this pack's dictionary inputs - that's expected. But with ten pairs, the classic self-inflicted wound is duplicate keys: if two slots use the same key string, the later slot silently wins, and you can spend a while wondering why your value "doesn't stick." Keep slot keys unique, and remember the empty-pair skip rule means you can't intentionally store empty strings.

Categorydictionary/core

Inputs (21)

NameTypeDefaultDescription
key1STRING
value1STRING
input_dictoptDICT
key2optSTRING
value2optSTRING
key3optSTRING
value3optSTRING
key4optSTRING
value4optSTRING
key5optSTRING
value5optSTRING
key6optSTRING
value6optSTRING
key7optSTRING
value7optSTRING
key8optSTRING
value8optSTRING
key9optSTRING
value9optSTRING
key10optSTRING
value10optSTRING

Outputs (1)

NameTypeDescription
DICTDICT