Nodes/PromptModels Studio/πŸ“¦ PRO Set Node (Named)
ComfyUI Node

πŸ“¦ PRO Set Node (Named)

The Set node that stops guessing your variable name

By cdanielpΒ·Created 9 months agoΒ·Updated 2 months agoΒ· 28
πŸ“¦ PRO Set Node (Named)
  • value
  • value
β—„namemy_variableβ–Ί

PRO_SetNodeNamed is the plain-spoken cousin of PRO_SetNode. Where the regular Set node derives its variable name from your widget value or a Set_whatever node title - clever, but occasionally surprising - this one just asks you: here's the value, and here's the name, spelled out. No title parsing, no "first non-None wins" across fifteen type inputs. It's the version you reach for when you want zero magic in your Set/Get wiring.

What it's for

Same job as any Set/Get pair: store a value in the shared in-memory cache under a name, so a matching PRO_GetNode can read it back elsewhere in the graph without a wire across the canvas. The difference is explicitness. You type lora_weight and you get exactly lora_weight. If you're the kind of person who names things once and wants them to stay named - or you've been burned by a Set node silently storing under the wrong derived name - this is the one.

How it works

The implementation is as direct as the interface: it takes the value, writes it to the cache under the name string you supplied, and returns the value through a * output so the node can sit inline. The type is detected from the value itself, and because the name is a required, visible input, there's no cleverness about titles or widget values to trip over. Matching Get nodes just need to use the same string.

Inputs and output

  • value (*) - required. Anything the cache can store: MODEL, IMAGE, LATENT, CONDITIONING, a plain string, whatever. This is the thing you want to remember.
  • name (STRING, default my_variable) - required. The key. Keep it identical on the matching PRO_GetNode.
  • value output (*) - passes the input through unchanged, so you can daisy-chain it into the rest of your graph if you want.

Installing it

Ships in COMFYUI_PROMPTMODELS (PromptModels Studio in Manager), same as the rest of the PRO Set/Get family:

cd ComfyUI/custom_nodes
git clone https://github.com/cdanielp/COMFYUI_PROMPTMODELS

Restart ComfyUI. No API key - local only. Needs ComfyUI 0.26.0+ for the pack to load.

Common issues

The one real trap is the same one that bites every Set/Get pair: the cache is in-memory and per-session. Restart ComfyUI (or hit PRO_ClearCacheNode) and every stored name is gone, so a PRO_GetNode referencing it will raise a "variable not found" error until you re-run this node. Typos are on you now, which is kind of the point - but it does mean a wrong name fails loudly at the Get rather than silently storing twice. Beyond that, it's about as failure-proof as a node gets.

CategoryGetSetNode_Pro/utils

Inputs (2)

NameTypeDefaultDescription
value*β€”
nameSTRINGmy_variableβ€”

Outputs (1)

NameTypeDescription
value*β€”