ComfyUI Node

Get Node

DeepSoch's Get Node ends wire spaghetti

By deepsoch·Created 5 months ago·Updated 5 months ago· 4
Get Node
    • value
    name

    Get Node is the receiving end of a wireless reroute pair: a Set Node stores any value under a name, and a Get Node anywhere else in the graph pulls it back out without a single wire crossing the canvas. If you've ever dragged a wire across half a workflow to feed one number into a far corner, you know exactly why this exists. It's the ComfyUI equivalent of a TV remote - nothing you couldn't do with cable, just vastly less mess.

    The mechanism is genuinely clever, and it's worth knowing because it changes how you should think about the pair. These nodes are virtual. The Python classes are stubs - the real work happens in web/get_set.js, which marks every instance isVirtualNode = true so ComfyUI's prompt builder strips it out before anything reaches the backend. On Get nodes it overrides getInputLink / getInputNode so upstream graph traversal jumps straight to whatever feeds the matching Set. Net effect: downstream nodes behave as if the wire were drawn directly, and the exported workflow JSON contains real resolved connections. The Set/Get pair is a transparency hack, not a data store.

    Inputs are about as minimal as they come: just name (STRING). Set it to the exact name of the Set Node you're retrieving from - case matters, and it's on you to keep pairs in sync. The JS frontend tries to help: it scans the graph for Set nodes and can populate that name field from the ones that exist. Output is a single value with the wildcard type *, which is ComfyUI's "accept anything" trick - it adopts whatever the matching Set holds, so it can carry a MODEL, an INT, a CONDITIONING, an IMAGE, whatever you stored.

    Where you'll actually use it: the bundled Transform-Image.json workflow is a good tour. It's a Flux2 img2img chain where Set/Get pairs reroute the batch size, the noise seed and the guidance value around the graph, keeping the sampler section readable instead of tangled in long wires.

    Install (shared with the whole DeepSoch Toolkit): ComfyUI Manager → search "DeepSoch Toolkit", or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/deepsoch/ComfyUI-deepsoch-toolkit
    

    then restart ComfyUI. The pack ships zero Python dependencies - nothing to pip install.

    Where people get burned: a name that doesn't match any Set Node means the Get resolves to nothing, and because the nodes vanish before execution you can't just look at the backend log to debug it - check the widget values first. And the usual virtual-node caveat: if you export a workflow and hand it to someone who hasn't installed the pack, those invisible connections come out as missing nodes. Small pack from a small company (Deepsoch AI, the folks behind the free deepsoch.app ComfyUI instances), so don't expect a huge community to lean on - but for flattening a busy graph it's hard to beat.

    CategoryDeepsoch AI/util

    Inputs (1)

    NameTypeDefaultDescription
    nameSTRING

    Outputs (1)

    NameTypeDescription
    value*