Nodes/Tojioo Passthrough/Int Passthrough (Widget)
ComfyUI Node

Int Passthrough (Widget)

One number box, typed once, fanned everywhere

By Tojioo·Created 11 months ago·Updated 7 months ago· 13
Int Passthrough (Widget)
    • int
    int

    This is the version of the Int Passthrough with a number box on it. Type 512 once, and the int output carries it to every node you fan the wire out to. It's the value-node pattern in its simplest form: one place to edit a number, instead of the same number typed into five widgets that can drift apart.

    The parent pack makes the distinction explicit: every passthrough for a primitive type - INT, FLOAT, STRING, BOOLEAN - comes in two flavors, a connect-only one and a Widget variant. This is the Widget one, and it lives under Tojioo Passthrough → Simple Passthrough → Widget Variants. The two nodes produce identical output; the only difference is where the value comes from. Type it here, or connect a wire into the int socket and the incoming value wins.

    How it works

    Standard simple-passthrough machinery - the run function is return (kwargs.get("int"),) - but without the forceInput flag, so the node renders a widget alongside the socket. You can type the value, or connect a wire, or both (the connected wire takes over). Unconnected input behaves like the rest of the pack: None out, meaning nothing fanned out.

    Inputs and outputs

    • int (INT) - a widget on the node, optionally overridable by a wire.
    • int (INT) out - the value, ready to feed any INT socket.

    Install

    Manager → search "Tojioo Passthrough" → Install → restart, or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/Tojioo/tojioo_passthrough.git
    

    No models, no pip deps. Small single-maintainer pack, GPL-3.0.

    Common issues

    Honestly the only confusion here is picking the wrong variant - people grab the plain Int Passthrough, see no widget, and think the pack is broken. If you want a type-in box, this is the one. If you want to guarantee the value always comes from a wire, use the connect-only version. And remember the shared gotcha: if nothing is connected and you haven't touched the widget, the output is None, which downstream nodes won't love.

    CategoryTojioo Passthrough/Simple Passthrough/Widget Variants

    Inputs (1)

    NameTypeDefaultDescription
    intoptINT

    Outputs (1)

    NameTypeDescription
    intINT