Multiline String
The Boring Node That Feeds Your Prompt Twice
- STRING
Here's the honest pitch for Multiline String from brucew4yn3rp/ComfyUI_SelectiveMetadata: it's a text box that outputs exactly what you type. That's it. No processing, no formatting, no token counting. And that's fine, because its job is to make the pack's other node work.
The intended pattern is right there in the pack's README. You type your prompt once into this node, split its output two ways - into CLIP Text Encode (Prompt) to actually condition the generation, and into the metadata fields of the sibling Save Image (Selective Metadata) node. Result: your PNG carries the prompt as a clean, readable text chunk instead of burying it in the workflow JSON. One typed prompt, two uses, zero copy-paste drift.
What it does
The mechanism is a straight pass-through. There's a single text input (a multiline box) and one STRING output - the process_text function literally returns the input unchanged. Nothing to configure, nothing to wire wrong.
Since the output is a plain STRING, you can also feed it into seeds, LoRA trigger lists, or filename prefixes. But don't expect extras - no character count, no list splitting, no widgets. It's the definition of a utility node.
The honest take
Be clear-eyed about this one: it is not special. Every ecosystem pack worth installing has a multiline text node - rgthree, Efficiency Nodes, WAS all ship one, and you probably already have at least one you like. If you do, you don't need this. It exists to make the selective-metadata workflow self-contained: install the pack for the save node, and this one comes along ready to feed it.
That's also why you should keep the article about the save node handy. This node is only as useful as what you hook it into - on its own it just sits there being a text box.
Install
Same pack, same steps: ComfyUI Manager (search "Save Image with Selective Metadata"), or:
cd ComfyUI/custom_nodes
git clone https://github.com/brucew4yn3rp/ComfyUI_SelectiveMetadata/
cd ComfyUI_SelectiveMetadata
pip install -r requirements.txt # numpy + Pillow, which you already have
Restart ComfyUI and you'll find both nodes. There's no model download, no heavy dependency, nothing to trip over. If you already have a multiline text node you're happy with, honestly skip this one - the save node is the reason to install the pack. This is just the nicely bundled companion.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| text | STRING | Enter your multiline text here |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |