β String Input
When Text Needs to Be Shared, Not Typed
- STRING
String Input [DVB] is text in a box. Type a string, get that string back out as a connectable STRING output. It's the sibling of Int Input [DVB] and Float Input [DVB], and like them it exists to turn a value you'd otherwise retype into a single wire that everything downstream can share.
You'd think text doesn't need a node - every node already has a text field, right? But consider the case where the string isn't a literal you type, it's a value your workflow produces. The pack's file-iteration tool, For Each Filename [DVB], emits a file path as it walks a directory. String Input is the clean spot to capture that output and fan it out - into a Load Image From Path [DVB], a filename convention, or any node that wants a string. It's the pack's standard way of keeping one value in one place and wiring it everywhere.
One detail distinguishes it from its closest relative: this is the single-line version. The pack also ships Text Input [DVB], which is the same pass-through with a multiline field for prompts and blocks of text. String Input is for short, machine-ish values - paths, labels, names - while Text Input is where your paragraph-length prompt text goes. Grabbing the wrong one is a cosmetic mixup rather than a failure, but knowing the split saves you a second of confusion.
The interface
value(default"") - the string you want on the wire.- Output:
STRING- the same value, now a connectable output.
No transformation, no concatenation, no templates. Pure pass-through.
Installing
It ships in Dream Video Batches (Alt Key Project / Dream Project). Install the pack once:
cd ComfyUI/custom_nodes
git clone https://github.com/alt-key-project/comfyui-dream-video-batches.git
cd comfyui-dream-video-batches
pip install -r requirements.txt
Or search "Dream Video Batches" in ComfyUI Manager, install, restart. No models involved.
Where people get burned
Same trap as its int sibling: don't wire up a String Input for a value you type in one place - just type it in the input field and save yourself the node. String Input earns its keep when the string is shared, computed, or comes out of a loop. And because it's single-line, pasting a multi-line prompt into it will mangle the layout - that's what Text Input is for. Output is plain STRING, so it plugs into anything, no unwrapping required.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| value | STRING | β |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | β |