Nodes/Mikey Nodes/SR Int Prompt Input (Mikey)
ComfyUI Node

SR Int Prompt Input (Mikey)

SR Int Prompt Input (Mikey) — ComfyUI Node

By bash-j·Created 3 years ago·Updated 10 months ago· 188
SR Int Prompt Input (Mikey)
    • output_int
    input_int

    This is the integer sibling of SRFloatPromptInput, and it's exactly as simple: one input_int widget, one output_int on the way out. It doesn't transform the number at all - it just gives an integer its own labeled socket in your graph instead of it being buried as a hardcoded widget on some other node.

    What it's for

    The "SR" family - this one, SRFloatPromptInput, and SRStringPromptInput - reads like Mikey Nodes' answer to a problem every complex workflow eventually hits: you've got a value that needs to show up in three or four places, and editing it means hunting through the graph each time. Park it once in an SRIntPromptInput, wire the output everywhere it's needed, and now there's exactly one place to change it. That's especially handy paired with this pack's SearchAndReplace and wildcard system, where a placeholder in a text template might need to resolve to a real integer - a batch count, a step count, a seed offset - rather than staying stuck as text.

    It's also a decent way to expose "the knobs I actually want to tweak" at the top of a big workflow, separate from the dozens of other integer widgets buried inside sampler and loader nodes further down the graph.

    A concrete example: say you've got a batch-generation setup where the same numeric seed offset needs to feed both a wildcard selector and a filename-numbering node further downstream. Instead of typing that number into two widgets and keeping them in sync by hand every time you change it, one SRIntPromptInput becomes the single place it lives, and both consumers just read from its output.

    Input and output

    • input_int - the number itself. No min, max, or default is defined in the schema, so whatever ComfyUI's generic integer widget defaults to is what you'll see until you set it.
    • output_int - the same value, passed straight through, typed as INT so it plugs into anything expecting one (steps, batch size, seed, width/height math, etc.).

    Installing it

    Via ComfyUI Manager, search "Mikey Nodes." Or by hand:

    cd ComfyUI/custom_nodes
    git clone https://github.com/bash-j/mikey_nodes
    

    Restart ComfyUI. Nothing else to install - this node has no external dependency and needs no model files.

    Troubleshooting

    Because there's no transformation happening, the failure modes are all wiring problems rather than logic bugs. If a downstream node isn't picking up the value you set, check you're editing the correct copy of the node - duplicated nodes from a copy-paste are the most common reason the "obvious" fix doesn't work. And if you need actual arithmetic on the number rather than just moving it around, this node isn't it - reach for EvalFloats (also in this pack) or a dedicated math node from another pack instead; SRIntPromptInput is purely a labeled pass-through.

    CategoryMikey/Meta

    Inputs (1)

    NameTypeDefaultDescription
    input_intINT

    Outputs (1)

    NameTypeDescription
    output_intINT