Nodes/Tojioo Passthrough/Float Passthrough
ComfyUI Node

Float Passthrough

A decimal that travels by wire, not by typing

By Tojioo·Created 11 months ago·Updated 7 months ago· 13
Float Passthrough
    • float
    float

    The Float Passthrough is a connect-only relay for decimal values: one optional float socket in, the same float out. No widget, no typing - the number has to come from another node. That sounds like a limitation until you're the person who has a computed denoise strength, a CFG from a controller, or a steps-per-second figure that three nodes all need. Typing the same 0.45 into three widgets is how you get a silent mismatch; one wire is how you don't.

    It's the same "single source of truth" idea as the Int Passthrough, just for the numbers with a decimal point. Reach for it whenever a float is produced somewhere - a math node, a slider from a control pack, a LoRA-weight calculator - and has to reach a KSampler's denoise, a control strength, and an upscale factor at once.

    How it works

    The simple passthroughs all come from one generated implementation; this one's run function is return (kwargs.get("float"),). Read it, hand it back. Two behaviors:

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

    Inputs and outputs

    • float (FLOAT) in → float (FLOAT) out.

    One pair. Output feeds any FLOAT socket - denoise, CFG, weights, strength sliders. 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 gotcha applies as always - mute the node upstream and consumers get nothing, silently. And don't be surprised by the missing widget: connect-only is the design. If you opened this expecting a number box, you want PT_FloatWidget. Easy to remember once you've hit it once.

    CategoryTojioo Passthrough/Simple Passthrough

    Inputs (1)

    NameTypeDefaultDescription
    floatoptFLOAT

    Outputs (1)

    NameTypeDescription
    floatFLOAT