Text Box - Ostris
A text box with a hidden comment feature
- string
- text
Every ComfyUI user's first custom node is a text box, because core ComfyUI is bizarrely stingy with them. Text Box - Ostris is that node: one multiline input, two outputs, nothing clever. But there's one genuinely useful behavior hiding in the source that the one-line README doesn't mention, so it's worth a proper look.
The single input is text, a multiline string that defaults to empty. The two outputs, string and text, carry the exact same value - one typed as the generic STRING and one as TEXT, so whichever type your downstream node demands, there's a port for it. That matters more than it sounds: a lot of nodes refuse STRING when they're wired for TEXT, and vice versa, and this box quietly covers both.
The hidden feature: lines that start with # are stripped before the value goes out. It's a comment filter, exactly like you'd expect in a config file. You can write a prompt box like this:
# draft v2 - keep the moody lighting
a lone figure in a rain-soaked alley, neon reflections, cinematic
and the # draft v2 line never reaches the text encoder. That's genuinely handy for keeping notes about a prompt inside the prompt's own box without polluting the generation. The flip side is the gotcha: if you ever actually want a line that starts with # in your output - a hash tag, a hex color like #ffcc00, whatever - this node will eat it. No toggle, no escape hatch, just gone.
Everything else is exactly as boring as it should be. Both outputs come from the same cleaned string, newlines collapsed, so you can wire it into a CLIP text encode, this pack's LLM Prompt Upsampling, or anything else that takes text. It's a QOL node from the Ostris Nodes pack - same install as the rest of it:
cd <your_comfyui_folder>/custom_nodes
git clone https://github.com/ostris/ostris_nodes_comfyui.git
cd ostris_nodes_comfyui
pip install --upgrade -r requirements.txt
or through ComfyUI Manager by searching for Ostris Nodes and restarting. (Note: that pip install line matters for the whole pack even if you only want this node - the pack loads its LLM module unconditionally at startup, so skipping the requirements step can mean none of its nodes register. More on that in the LLM articles.)
There are a dozen near-identical text boxes in the ecosystem, and I won't pretend this one is the best of them. But the comment-stripping is a real differentiator if you keep notes inside your prompt boxes, and since it comes bundled with One Seed and Save Image Direct, it's effectively free. Grab it as part of the pack, use it where a TEXT-typed port is being picky, and enjoy knowing your # comments are silently evaporating.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| text | STRING | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| string | STRING | — |
| text | TEXT | — |