Convert Integer to String
Your Seed, Your Steps, as Text — For Filenames That Record Reality
- STRING
Integers are everywhere in a ComfyUI graph - seeds, step counts, batch sizes, the width and height of your canvas. Most of the time they stay in their nice typed lanes. But the moment you want one of them written down - in a filename, in a prompt, in a text overlay - you need a string, and this node is the bridge.
Why you'd reach for it
The seed is the classic case. Save a batch of images with seed1234567.png in the filename and you can reproduce a winner later without digging through metadata. Same story for steps, or any counter you're tracking across a workflow. It's also a handy debug tool: route your current seed to a display node and you can see exactly what a run used without scrolling the console. This converter is one of a matched set in the pack (Int, Float, Bool, and Number versions), and they stack together well for building labels from several values.
How it works
No cleverness, which is the right amount. It calls str() on the integer and returns it. Type-checked first, so a genuinely integer INT input is expected - if you feed it something else it throws a "not an integer" error rather than silently giving you garbage text.
Inputs and outputs
- integer_input - the
INTto convert. The only input. - STRING - the output. Feed it to any node that wants text: filename builders, display nodes, prompt assembly.
Installing it
Part of "quadmoon's ComfyUI nodes" by traugdor. Through ComfyUI Manager, search the pack title or use Install via GIT URL with https://github.com/traugdor/ComfyUI-quadMoons-nodes.git. Manual route:
cd ComfyUI/custom_nodes
git clone https://github.com/traugdor/ComfyUI-quadMoons-nodes.git
Restart ComfyUI. No model files, no dependencies beyond ComfyUI itself.
Common issues
The one thing that trips people up is the type-check: if a node upstream of this one is really handing you a float (even a clean 7.0) or a string, the conversion fails. Keep the input honest. Also note it converts the value on the wire, not the value in some widget - so if you change the seed upstream, the filename reflects the new seed. That's the feature, not the bug.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| integer_input | INT | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |