ComfyUI Useful Stuff Nodes
Utility ComfyUI custom nodes that add some extra features for your workflows (random int for cli runs, unix timestamp, boolean random, string match switch, etc).
Nodes (7)
A dozen maybe-sources in, one socket out, and a dice roll if you don't choose
The node that outputs nothing (and why that's the point)
Build a library of image+prompt pairs and pull one per run
A real coin flip you can wire into your graph
A fresh random seed on every run — even when you run from the CLI
Route by exact text match, with a default that always saves you
Stamp filenames and log every run
ComfyUI-UsefulStuffNodes
Utility ComfyUI custom nodes that add a few small helpers for workflows.
Nodes
- Empty String — returns an empty
STRING. - Unix Timestamp — returns the current Unix timestamp as an
INT.currentis freshly generated on every execution.savedreturns the value that was stored in the node before this execution; after execution, the new current value is written intolast_valueso it can be saved with the workflow. - Random Long INT — returns a large positive random
INTin the signed 64-bit range.currentis freshly generated on every execution.savedreturns the value that was stored in the node before this execution; after execution, the new current value is written intolast_valueso it can be saved with the workflow. - Boolean Random — returns a random
BOOLEAN:trueorfalse.currentis freshly generated on every execution.savedreturns the value stored in the node before this execution; after execution, the new current value is written intolast_valueso it can be saved with the workflow. - String Match Switch — passes through the first connected option whose control string exactly equals
match; otherwise it returns the requireddefaultinput. Connecting an option adds the next option/control pair. Disconnected options never participate. The UI expands as needed, up to 63 selectable options. - Any Match Router — sends one input value to the first any_out_N whose text_N exactly equals match. Filling the last text field adds the next text/output pair. If nothing matches, every output is None.
- Any Switch — routes one input to output 1 when enabled is true, otherwise to output 2.
- Any If Else — returns input 1 when condition is true, otherwise input 2.
The last_value widget is a read-only native value: INT for integer nodes and BOOLEAN for Boolean Random. On a newly created node, the initial saved value is 0 for integer nodes and false for Boolean Random.
Installation
Use ComfyUI Manager or copy this folder into ComfyUI/custom_nodes/ and restart ComfyUI. Reload the browser page after installing or updating the node pack so the frontend extension is loaded.