Nodes/SP-Nodes/SP_DynamicCombo
ComfyUI Node

SP_DynamicCombo

A dropdown you build yourself, no custom node required

By bananasss00·Created 2 years ago·Updated 6 days ago· 20
SP_DynamicCombo
    • *
    selected

    Sometimes you want a clean dropdown of your own values - a shortlist of checkpoints you actually use, a set of resolution presets, a handful of named configurations - wired anywhere in your graph, without writing a Python node to get it. That's exactly what this one is for, and the author's own description says it plainly: "Configure combo values in node properties."

    How it works

    Right-click the node and open its Properties panel - that's where you define the list of choices, not in the widget itself. Once you've populated it, the node behaves like a normal dropdown: pick an entry, and the selected value becomes what the node outputs. The output type is * (wildcard), meaning it'll plug into pretty much anything downstream that isn't strict about its input type - a real convenience if you're using this to drive, say, a text field or a loosely-typed switch elsewhere in the graph.

    The inputs and outputs that matter

    • selected - a string, the currently-chosen entry from whatever list you configured in Properties.
    • Output: * - the same value, passed through as an "any type" output.

    That's the entire surface. The real functionality lives in the Properties panel, which is a ComfyUI mechanism this node leans on rather than reinventing.

    Why you'd reach for it

    The obvious use is a reusable preset switch: instead of retyping the same string across three or four nodes every time you want to swap a configuration, define your options once here and change one dropdown. It's also a handy building block if you want your own quick-pick menu for something the stock nodes don't offer a combo for.

    Compare this to ComfyUI's native combo widgets, which are normally hardcoded by whatever Python node defines them - you don't get to edit a checkpoint dropdown's contents without editing the node's code. SP_DynamicCombo inverts that: the node ships generic, and you supply the list yourself at graph-build time. That's a small thing, but it's the difference between forking a node pack to add one custom dropdown and just dropping this in and typing your options into Properties.

    How to install it

    Through ComfyUI Manager: search "SP-Nodes," install, restart. Or clone it directly:

    cd ComfyUI/custom_nodes
    git clone https://github.com/bananasss00/ComfyUI-SP-Nodes
    

    Restart ComfyUI afterward.

    Common issues

    The one real gotcha follows straight from where the choices live: since your combo list is stored in the node's Properties rather than in the widget, it doesn't travel obviously when you share a workflow JSON with someone else - they'll see the node and a selected value, but not immediately understand where the options came from unless they know to right-click and check Properties. If you're sharing a workflow built around this node, it's worth a note in your description pointing collaborators at the Properties panel so they're not left wondering why the dropdown looks empty or unfamiliar.

    CategorySP-Nodes

    Inputs (1)

    NameTypeDefaultDescription
    selectedSTRING

    Outputs (1)

    NameTypeDescription
    **