ComfyUI Node Runs on cloud

advPlot combo

Grid-test every option in a dropdown without typing them

By TinyTerraΒ·Created 3 years agoΒ·Updated 3 months agoΒ· 604
advPlot combo
    • plot_text
    β—„nodeβ–Ύβ–Ί
    β—„widgetβ–Ύβ–Ί
    β—„modeβ–Ύβ–Ί
    β—„start_fromβ–Ύβ–Ί
    β—„end_withβ–Ύβ–Ί
    β—„selectβ–Ύβ–Ί
    β—„selectionβ–Ί
    β—„label_typeValuesβ–Ί

    advPlot combo is the xyPlot generator for dropdown menus - the "combo" widgets like sampler_name, scheduler, upscale_method, or a model picker. Instead of typing every option into a list, you tell it which widget to sweep and it reads the widget's own list of valid choices straight out of the node definition, then emits plot syntax for the ones you want.

    It's the laziest of the generator nodes, in the best way. The range node wants a start/step/stop; the string node wants a pasted list. This one just asks "which dropdown, which mode," and the options are already sitting in the node's schema. That's also why the node / widget dropdowns show "Connect to xyPlot for options" until the node is wired into a live graph - it can't enumerate choices until it can see the target node.

    How it works

    Pick the target node and widget, then choose a mode:

    • all - test every valid choice the widget offers. Great for "which scheduler does this model like?" runs. Dangerous for big lists, obviously.
    • range - sweep from start_from to end_with (also dropdowns, populated from the widget's options). The node handles the indexing, even if you select them in reverse order.
    • select - type the ones you want in the selection box, one per line, and it matches them against the widget's valid options, dropping anything that isn't a real choice. This is the "I know the three I want" mode.

    label_type sets the axis label style (Values / Title and Values / ID, Title and Values), same as the other generators.

    Output is plot_text, the generated <n:v_label> + [nodeid:widget='value'] lines, and since it's an output node you can review the syntax in its UI before running.

    Installing it

    Part of tinyterraNodes:

    cd ComfyUI/custom_nodes
    git clone https://github.com/TinyTerra/ComfyUI_tinyterraNodes.git
    

    or ComfyUI Manager β†’ tinyterraNodes. No extra dependencies.

    Gotchas

    The biggest gotcha is the reverse of the string node's: this one won't invent choices. In select mode, a typo'd entry is silently dropped, and in all mode the widget's list is read at the moment the graph runs - if you've got the node connected to a target whose widget list changed (say a new scheduler was added to ComfyUI), the generated axis reflects the latest. Also, all mode on a 44-item sampler list means 44 generations per column; pair it with a single Y value unless you want to babysit a very long run. And like every generator here, each combo node emits one axis - combine several with the merge node if you want a multi-axis plot.

    Category🌏 tinyterra/xyPlot

    Inputs (8)

    NameTypeDefaultDescription
    nodeCOMBO1 options: Connect to xyPlot for options
    widgetCOMBO1 options: Select node for options
    modeCOMBO3 options: all, range, select
    start_fromCOMBO1 options: Select widget for options
    end_withCOMBO1 options: Select widget for options
    selectCOMBO1 options: Select widget for options
    selectionSTRINGβ€”
    label_typeCOMBOValues3 options: Values, Title and Values, ID, Title and Values

    Outputs (1)

    NameTypeDescription
    plot_textSTRINGβ€”