Nodes/ComfyUI-Lora-Manager/Text (LoraManager)
ComfyUI Node

Text (LoraManager)

A text box with tag autocomplete and wildcard expansion

By willmiao·Created 2 years ago·Updated 22 days ago· 1,301
Text (LoraManager)
  • text
  • STRING
seed

The simplest node in the pack, and a quietly useful one. It's a text input box that outputs a plain STRING - except it comes with autocomplete for tags, styles and wildcards, plus runtime wildcard expansion. So it's the stock "primitive string" node with the pack's prompt-authoring conveniences baked in.

Where it earns its slot is as a reusable text source. Type a prompt fragment once, expand wildcards from it, and route that string into as many places as you want - a CLIP encode, the LoRA Text Loader's lora_syntax input, a Save Image filename. Because the wildcard expansion happens here, you can build a single node that spits out a fresh random variation each run and feed it wherever a string is expected.

That last part is what makes it more than a convenience. A wildcard like __poses/dynamic__ resolving in one central Text node, then fanning out to several downstream nodes, means you write the randomness once and it stays consistent across the whole graph - no copy-pasting the same wildcard into three different boxes and hoping they roll the same value.

How it works

You type into the box. The / autocomplete surfaces your tags, styles and wildcard files as you go. At runtime the node expands any __wildcard__ references and outputs the resolved string. The seed input controls that randomization: hold it steady for a repeatable result, change it for a new roll of the wildcards.

Wildcard files live in {settings folder}/wildcards/ and can be .txt (one option per line), or .yaml/.yml/.json (nested keys ending in string arrays). wildcards/color.txt is referenced as __color__; a nested palette: warm: [...] becomes __palette/warm__.

Inputs and outputs that matter

  • text (autocomplete text box, required) - the content, with tag/wildcard autocomplete.
  • seed (INT, optional) - fixes or varies the wildcard expansion.

One output: STRING - the expanded text. Feed it into any node that takes a string: a text encoder, a loader's syntax input, a filename pattern, whatever.

How to install it

Via ComfyUI Manager: search lora-manager, Install, restart. Or manually:

cd ComfyUI/custom_nodes
git clone https://github.com/willmiao/ComfyUI-Lora-Manager.git
cd ComfyUI-Lora-Manager
pip install -r requirements.txt

then restart. Light install, nothing to download.

Common issues & troubleshooting

Wildcards come out literally as __name__. That means no matching wildcard file was found. Type / in the box - when no wildcards exist yet, the dropdown shows the exact folder path so you can go create one. Check the filename and, for YAML/JSON, that your key path matches.

It always outputs the same thing. The seed is doing its job - a fixed seed gives a fixed expansion. Randomize the seed for variety.

Difference from Prompt (LoraManager)? This one just gives you a string. If you want the text encoded to CONDITIONING and trigger words merged in, that's Prompt (LoraManager). Use Text when you need the raw string somewhere else in the graph.

CategoryLora Manager/utils

Inputs (2)

NameTypeDefaultDescription
textAUTOCOMPLETE_TEXT_PROMPT,STRINGThe text output. Wildcard references inserted with /wildcard are expanded at runtime.
seedoptINTOptional seed for wildcard generation. Leave unconnected for non-deterministic wildcard expansion.

Outputs (1)

NameTypeDescription
STRINGSTRINGThe text output.