Nodes/Tojioo Passthrough/Int Passthrough
ComfyUI Node

Int Passthrough

A number that travels by wire, not by typing

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

    An integer passthrough that has no widget - that's the whole pitch, and it's weirder than it sounds until you've hit the problem it solves. Seeds, step counts, widths, batch sizes: these are values that another node is already computing. When the number comes from somewhere else, the last thing you want is to type the same integer into half a dozen widgets and hope you never forget one. The Int Passthrough is a connect-only relay: one optional int socket in, the same integer out, so a single computed value can travel and fan out without being hand-entered anywhere.

    This is the "one source of truth" pattern from the plumbing playbook, applied to a number. You'll reach for it when a seed or a step count is produced by another node - a randomizer, a counter, a calculator - and needs to reach a sampler, a filename builder, and a comparison node at once. One wire, one authoritative value, no silent mismatches.

    How it works

    Same generated implementation as every simple passthrough in this pack: return (kwargs.get("int"),). Read it, hand it back. Two behaviors:

    • Unconnected means None. Empty socket, or muted/bypassed upstream, and the output is None.
    • Connect-only. Because the plain version marks the socket forceInput, there's no type-in box. If you want to type the value once and fan it out, that's the Widget variant - this one is strictly for values that already exist on a wire.

    Inputs and outputs

    • int (INT) in → int (INT) out.

    One pair. Output feeds any INT socket - KSampler seed, step counts, width/height, batch sizes. Under Tojioo Passthrough → Simple Passthrough.

    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

    The None behavior is the one trap: mute the node producing the number and downstream consumers get nothing, silently. And the connect-only design trips up people who expect a number box - if you open this node and see no widget, that's not a bug, you're holding the wrong variant. Grab PT_IntWidget instead.

    CategoryTojioo Passthrough/Simple Passthrough

    Inputs (1)

    NameTypeDefaultDescription
    intoptINT

    Outputs (1)

    NameTypeDescription
    intINT