ComfyUI Node

Preset Int [BETA]

A seed and steps slider that stays where it should

By DemonAlone·Created about a month ago·Updated a day ago· 1
Preset Int [BETA]
    • INT
    preset
    value0

    The integer sibling of PresetFloat, and if anything it's the more useful one. PresetIntNode (display Preset Int [BETA]) is a whole-number slider with preset ranges so you can stop babysitting a KSampler's seed and steps fields. Pick Seed and the output stays inside the valid seed space; pick Steps and you can't accidentally type 5000 into a sampler that'll take an hour. It's from DemonAlone-JS_Addon-ComfyUI, the JS companion pack to the main DemonAlone-nodes repo, and it's based on rgthree's Power Primitive - the same lineage as its float twin.

    How it works

    Same startup-widget trick as PresetFloat: the slider itself is wide (0 to 2147483647) because ComfyUI pins input definitions when the node loads, and the real enforcement lives in execute(). You pick a preset, the node clamps whatever you dragged to that preset's min/max, and since the step is always 1, "snapping" is trivial - it just keeps the integer on the grid. Two presets shipped:

    • Seed (0 – 4294967295, step 1) - the full unsigned seed range.
    • Steps (1 – 10000, step 1) - default 28, and the floor of 1 means you can't feed a sampler zero steps and get an error mid-run.

    The inputs and output

    preset (dropdown) and value (integer slider) in, a single INT out. Use it exactly like its float sibling: right-click the seed or steps widget on a KSampler, convert to input, and wire this node in - now one seed source can drive multiple samplers, which is the classic "one seed, five samplers" pattern from the primitive-node playbook.

    Installing it

    cd ComfyUI/custom_nodes
    git clone https://github.com/DemonAlone/DemonAlone-JS_Addon-ComfyUI
    

    or install "DemonAlone-JS_Addon-ComfyUI" via ComfyUI Manager and restart. No models, no dependencies.

    Where people get burned

    The same two caveats as its float twin, condensed: the widget doesn't visibly re-range when you switch presets - a 50000 typed in under Seed only clamps at execution time - and if you already run rgthree's Power Primitives, you already have this capability and don't need the extra node. For a plain vanilla setup though, this is a genuinely nice small upgrade: a seed slider that can't drift into a broken value, and a steps slider with a hard floor of 1. It's a thin utility node, and that's fine - it does one job, does it without fuss, and stays out of your way.

    CategoryCustomNodes/Presets

    Inputs (2)

    NameTypeDefaultDescription
    presetCOMBO2 options: Seed (0 - 4294967295, step 1), Steps (1 - 10000, step 1)
    valueINT00–2147483647

    Outputs (1)

    NameTypeDescription
    INTINT