ComfyUI Node

Int 🦾

An integer you can route to every node that wants one

By beyondprompting·Created 9 months ago·Updated 7 months ago· 0
Int 🦾
    • INT
    value0

    Int is a primitive node with a single job: hold an integer in one place and let you wire that same value into anything that wants an integer - steps, width, height, seed offset, batch size, the select input on a switch. No arithmetic, no rounding, no tricks. Just a number that lives on its own node instead of being trapped as a widget on some random downstream node.

    If you've used ComfyUI's core primitive value nodes, this is that, with a -beyond_nodes suffix. It's a port of the original ComfyUI-Logic extension's Int node.

    How it works

    The input value is an INT (default 0), returned unchanged as an INT output. One widget, one socket, pass-through. The practical payoff is workflow hygiene: define width or seed once, then fan it out to three or four consumers. Change one number, the whole graph follows.

    The inputs that matter

    • value (required) - the integer. Type or drag.

    Output: INT - the same value.

    Install

    Part of the ComfyUI-Beyond_nodes pack. ComfyUI Manager → search "Beyond_nodes" → install → restart. Manual route:

    cd ComfyUI/custom_nodes
    git clone https://github.com/beyondprompting/ComfyUI-Beyond_nodes
    

    Restart ComfyUI. No extra packages.

    Common issues

    • I connected a Float and it complained. An int input won't accept a float socket; ComfyUI is strict about numeric types. Feed it from an Int node, or convert the float explicitly.
    • The number is always 0 when I load a workflow. Check whether you saved the workflow after setting the widget. Widget values persist when saved; if the node was freshly dropped, defaults apply.

    That's the whole thing. Reach for it when you're tired of editing the same number in four nodes, and keep it out of the graph when you're not.

    CategoryLogic

    Inputs (1)

    NameTypeDefaultDescription
    valueINT0

    Outputs (1)

    NameTypeDescription
    INTINT