Nodes/smn_support_nodes/[SSN] Input Integer
ComfyUI Node

[SSN] Input Integer

A typed integer holder for when you're sick of seeds living inside samplers

By SummonTheCat·Created about a year ago·Updated about a year ago· 0
[SSN] Input Integer
    • value
    ◄integer0►

    [SSN] Input Integer is a single integer on a node with one value output. You type a number, the number comes out the other side. That's the entire contract, and for the utility it provides it's remarkably easy to overlook.

    The problem it solves is the classic ComfyUI one: repetition. Your seed needs to feed the sampler, the filename saver, and a note node. Your step count is referenced in three places. If you type those numbers into each widget individually, every change is a three-place edit and every missed spot is a silent mismatch - the classic "why did the seed change but the output didn't" mystery. A value node breaks the number out of the widgets and makes it a socket you can fan out to anything. That pattern is the backbone of the plumbing layer in ComfyUI, and this is a clean example of it.

    Mechanically it's a straight passthrough: the integer widget (range ±2,147,483,647, step 1) goes into execute() and comes out as (integer,). No processing, no surprises. The one thing that distinguishes it from ComfyUI's built-in PrimitiveInt is the presentation - a numeric textbox with a spinner instead of a raw text field. That's genuinely nicer when you're scanning a wall of nodes, and it's the same widget style the rest of this pack uses, so if you've standardized on smn_support_nodes the consistency is the real value.

    A note on expectations: this node does not randomize, does not step, and has no control_after_generate dropdown. If you want "new random seed every run" you want that on a KSampler's seed widget, or one of the dedicated seed nodes in packs like rgthree. This node is for holding a fixed, deliberate number - the kind you don't want sneaking around on you.

    Install

    Part of the smn_support_nodes pack by SummonTheCat. ComfyUI Manager → Install Custom Nodes → search smn_support_nodes → Install, then restart ComfyUI. Manual route:

    cd ComfyUI/custom_nodes
    git clone https://github.com/SummonTheCat/smn_support_nodes
    

    Restart required. The pack's dependencies (opencv-python, imageio-ffmpeg) install automatically; there are zero model downloads in this pack, so nothing to fetch.

    Troubleshooting

    Honestly, there's little to break. The failure mode to watch is wiring value (INT) into a socket that wants a FLOAT - the engine will reject the connection or error at runtime, and beginners often reach for a converter when the real fix is just reading the socket type. And again: if you installed and can't find the node, it's almost always the missing restart.

    CategoryInput

    Inputs (1)

    NameTypeDefaultDescription
    integerINT0-2147483648–2147483647—

    Outputs (1)

    NameTypeDescription
    valueINT—