Nodes/smn_support_nodes/[SSN] Input Float
ComfyUI Node

[SSN] Input Float

A float holder that's basically the core Primitive, with nicer widgets

By SummonTheCat·Created about a year ago·Updated about a year ago· 0
[SSN] Input Float
    • value
    ◄float_value0.00►

    [SSN] Input Float is a single number on a node with a wire coming out of it. That's the whole job. Type a float in the box, get that float out of the value socket, and now anything downstream that takes a FLOAT can be fed from one authoritative source instead of you retyping the same number into four widgets and hoping you keep them in sync.

    ComfyUI already ships PrimitiveFloat, which does exactly this - and if you've been clicking around the node list you've probably noticed the plumbing layer is littered with near-identical takes on it. So why would you use this one? The honest answer is mostly the widget. This node renders its input as a proper numeric textbox with a step of 0.01 and a sensible ±1,000,000 range, which reads cleaner on a big workflow than a bare string field. If you've got a workflow built around other smn_support_nodes, one of these keeps the aesthetic consistent. If you're starting fresh and don't care about the pack, just use PrimitiveFloat and save yourself a dependency.

    The mechanism is about as deep as it gets: the float_value widget feeds straight through execute(), which returns (float_value,). There's no validation, no clamping beyond what the widget's min/max enforce, no hidden state. What you see is what you get, every run.

    The real reason a value node like this earns its place is the "convert widget to input" trick it enables - wire a shared seed or scale factor into five different nodes so changing it once changes all of them. The plumbing layer in ComfyUI is mostly repetition-fighting like this; a node that holds one number and fans it out is the whole game.

    Install

    It ships inside the smn_support_nodes pack by SummonTheCat. Easiest route is ComfyUI Manager - Manager → Install Custom Nodes, search smn_support_nodes, Install, then restart ComfyUI. Or by hand:

    cd ComfyUI/custom_nodes
    git clone https://github.com/SummonTheCat/smn_support_nodes
    

    Restart ComfyUI after installing - new node classes only register on startup. Dependencies are opencv-python and imageio-ffmpeg, which the pack pulls in for you; there are no model downloads, and this node specifically needs nothing beyond plain ComfyUI.

    Troubleshooting

    Not much can go wrong with a passthrough number, which is its own kind of virtue. The two things beginners hit: forgetting to restart after install so the node doesn't appear in the search, and wiring the value output into a socket that expects an INT when your number has decimals - type mismatch errors come straight from the engine, not the node. If a downstream node is complaining, check whether it really wants FLOAT or INT, and reach for [SSN] Convert Float To Others if you need both flavors out of one value.

    CategoryInput

    Inputs (1)

    NameTypeDefaultDescription
    float_valueFLOAT0.00-1000000–1000000—

    Outputs (1)

    NameTypeDescription
    valueFLOAT—