ComfyUI Node

Const Int

A fixed seed and step count, wired to everything

By levox00·Created 2 months ago·Updated 2 months ago· 0
Const Int
    • int
    value20

    Const Int is the integer sibling of Const Float in the Conditional Nodes pack: a fixed whole number on a widget, fanned out to any INT input that needs it. Seeds, steps, batch size, CFG on models where it's an int - the usual suspects. It's the same "define once, wire everywhere" plumbing pattern as core ComfyUI's PrimitiveInt, which is the honest point of comparison: this node exists so you can stay inside the pack's family and get a widget that reads as "my seed" at a glance.

    How it works

    Mechanically it's trivial: value is an INT with a default of 20, a minimum of 1, a maximum of 10,000. Type a number, get the same number out of the int output. No randomization, no control_after_generate dropdown - this is a fixed value, which is exactly what you want for a seed you've decided to keep.

    The gotchas

    The two things people actually hit:

    • The lower bound is 1, not 0. You cannot produce a 0 seed or 0 steps with this node. If you need 0 - and seed 0 is a perfectly normal thing to want for reproducibility - use core's PrimitiveInt instead.
    • The upper bound of 10,000 will happily cover steps and seeds, but if you ever need a bigger constant (some people bake batch counts or width/height there), you're capped.

    Inputs and outputs

    value (INT, default 20, 1..10000) in; int out. Wire the output to a KSampler's seed or steps, or to any INT widget you've converted to an input.

    Why you'd use it

    The workflow-y reason to reach for it: in a conditional graph, the whole point is that one string routes everything. If your preset changes step count or batch size along with the model, a Const Int on each branch (through an If True) lets the routing carry the integer too - same one-string control, now driving numbers as well as models. It also keeps a multi-sampler graph honest: one seed source instead of four widgets that will drift apart the first time you forget one.

    Installing it

    Install as usual: ComfyUI Manager → "Conditional Nodes by Mikudes", or clone into custom_nodes:

    cd ComfyUI/custom_nodes
    git clone https://github.com/levox00/Conditional-Nodes-Comfy-Ui
    

    Restart ComfyUI; the node is in the conditional category. No dependencies beyond ComfyUI itself.

    Verdict: handy, dull, and slightly hobbled by that 1-minimum. For a plain seed you can't beat a core PrimitiveInt with widget-control mode set right; for a named "steps" knob inside a Mikudes conditional workflow, Const Int is fine.

    Categoryconditional

    Inputs (1)

    NameTypeDefaultDescription
    valueINT201–10000

    Outputs (1)

    NameTypeDescription
    intINT