Seed to Number (WLSH)
The one-line adapter for a SEED-typed input
- seed
- INT
This is the smallest node in the whole pack, and it does exactly one thing: it takes a SEED-typed value coming down a wire and converts it to a plain INT. The README's own explanation is refreshingly direct - "needed for some third party nodes" - meaning this exists purely because ComfyUI's ecosystem has two competing conventions for representing a seed (the native SEED socket type with its fixed/increment/decrement/randomize UI, and plain old INT), and not every node author picked the same one. When you hit a node that insists on INT and all you've got upstream is SEED, this is the adapter.
How it's different from this pack's Seed and Int (WLSH) sibling: that node originates a seed - it has its own seed widget you type a number into, and hands out both types at once. This node doesn't originate anything; its only input is seed, typed SEED, meaning it has to be fed from somewhere upstream - a native ComfyUI seed primitive, Seed and Int (WLSH)'s SEED output, or any other node that emits a SEED-typed value. If you don't already have a SEED coming from somewhere, this node has nothing to convert.
Inputs: seed (type SEED, required, no widget of its own - must be wired in). Outputs: INT, the same numeric value, retyped.
Where you'd actually reach for it: this pack's own text and save nodes lean on plain INT/STRING inputs rather than the special SEED type - the seed fields on Save Prompt (WLSH) and its siblings, for instance, are typed INT. If your seed originates from a native ComfyUI seed widget (which outputs SEED) and you want that same value logged in a save node or built into a filename, this is the node that bridges the gap. It's a one-directional converter, not a round-trip one - there's no node in this pack that goes the other way (INT to SEED) other than typing a fresh number into Seed and Int (WLSH)'s own widget.
Installing it
ComfyUI Manager: search "wlsh_nodes" or "WLSH Nodes", install, restart. Manual: cd ComfyUI/custom_nodes && git clone https://github.com/wallish77/wlsh_nodes, then restart ComfyUI.
Common issues
The only real way to get stuck on this node is trying to use it without a SEED source feeding it - since it has no widget of its own, if you haven't wired anything into seed, ComfyUI will flag the input as unconnected rather than letting you type a number directly, which trips people expecting every "seed" node to also be a place you enter a value. If you want to both set a seed and get it out as an INT, skip straight to Seed and Int (WLSH) instead - it does both jobs in one node, where this one only handles the conversion half.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| seed | SEED | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| INT | INT | — |