Nodes/comfyui-VarBoard/VarBoard Int
ComfyUI Node

VarBoard Int

Your step count and batch size, on a panel you can actually reach

By IA-gyz·Created 6 months ago·Updated 6 months ago· 3
VarBoard Int
    • INT
    • LABEL
    value0
    labelInteger

    Every workflow has a handful of whole numbers you touch constantly - step count, batch size, how many images to generate, clip skip. In stock ComfyUI those live scattered across the graph, and every run means zooming in on a different widget. VB_Int is a pass-through integer variable that surfaces on the VarBoard panel, so your most-tweaked numbers all sit in one place.

    What it does

    Under the hood it's aggressively simple: the node holds an integer and a label, and its execute() returns (value, label) unchanged. It's a variable, not an operator - the real magic is the frontend, which renders it as a row on the floating panel anchored by VB_Panel. Drag the slider or type a new number in the panel and it writes back into the node's widget, so the next queue run feeds the new value down whatever wire you attached.

    Two inputs, both of which matter:

    • value - the integer itself. Default 0, range -9999 to 9999, step 1.
    • label - what shows up on the board. Default "Integer". Name it "Steps", "Batch size", "Frames" - the label is the thing you'll actually read while working.

    Two outputs: INT (the value, wire this into your target's integer input, e.g. steps on a KSampler) and LABEL (the label string, handy if you ever want the name to flow somewhere downstream).

    Where you'd reach for it

    Anything where you're about to run the same workflow repeatedly while changing one whole number. Steps and batch size are the obvious ones. It's also nice for a denoise counter on a two-pass workflow, or a per-batch image count feeding a loop.

    One thing to know: the -9999 to 9999 range is the node's default, not a law of physics. The panel has per-node range overrides in its settings, so if you ever need a wider span you can widen it from the board instead of editing the node.

    Install

    Same story as the rest of the pack - no Python dependencies, no model downloads. ComfyUI Manager (search "VarBoard"), or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/IA-gyz/comfyui-VarBoard
    

    Restart ComfyUI, hard-refresh your browser, drop a VB_Panel on the canvas, and the VB_Int nodes you add will appear on it automatically.

    The gotcha to remember

    The value only updates when the workflow actually runs, same as editing any widget. You're not changing a live variable mid-graph - you're pre-setting a widget that the pass-through node hands to its target. That's fine, and honestly it's what makes this pack safe to use; the trade-off is it's a "tweak between runs" tool, not a "react to output in real time" tool. For A/B-ing settings between runs, that's exactly what you want.

    CategoryVarBoard

    Inputs (2)

    NameTypeDefaultDescription
    valueINT0-9999–9999Integer value. Can be overridden from the VarBoard.
    labelSTRINGIntegerDisplay label shown in the panel.

    Outputs (2)

    NameTypeDescription
    INTINT
    LABELSTRING