Nodes/ComfyUI-Shinsplat/Seed (Shinsplat)
ComfyUI Node

Seed (Shinsplat)

A single number in, a single number out — and its own help text says 'why?'

By Shinsplat·Created 2 years ago·Updated about a year ago· 47
Seed (Shinsplat)
    • seed
    seed0

    This is the most honest three lines of code in the whole pack. The node takes an integer seed, returns the same integer as seed, and the built-in help text reads: "Why? Cos people doing dums." That's it. It's a primitive value node - the same family as ComfyUI's built-in PrimitiveInt - and its entire job is to break the seed out of the sampler's widget so you can fan it out to multiple nodes from one socket.

    How it works

    Type a number, get a number. The one ComfyUI detail that makes a bare seed node worth having: when you convert a sampler's seed widget to an input and wire it to this node, the seed becomes a single source of truth - change it here and every consumer (KSampler, the filename prefix, a Sum Wrap counter feeding it) updates at once, instead of editing three separate widgets and praying you didn't miss one. It's also a clean place to drop a Sum Wrap or Green Box _int output when you want to drive seeds from a counter.

    The pack's node-plumbing lesson applies loudly here: control_after_generate fires after the run, so the number you see in a widget is the one used next. With a Seed node the number you typed is the number that runs - no timing gotcha, because there's no randomization logic at all. That's honestly its best feature.

    The inputs and outputs

    • seed - integer, 0 to 2^64-1, default 0.
    • Output: seed - the same integer, ready to wire anywhere an INT is accepted.

    How to install it

    Ships in ComfyUI-Shinsplat:

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

    or ComfyUI Manager → "ComfyUI-Shinsplat" → restart. No extra deps.

    Common issues

    • "It doesn't randomize" - correct, and that's the point. Use control_after_generate on the sampler's seed widget, or a randomize-capable node, if you want automatic rolling.
    • "Is this different from PrimitiveInt?" - functionally no, though it keeps the value as an explicit INT with a matching output type and sits in the Shinsplat category if you're already building graphs from this pack.
    • No troubleshooting needed, honestly - if this node is confusing you, the fix is to stop thinking about it and wire it up.
    Categoryadvanced/Shinsplat

    Inputs (1)

    NameTypeDefaultDescription
    seedINT00–18446744073709550000

    Outputs (1)

    NameTypeDescription
    seedINT