Text To List 多个文本合成列表 (2lab)
Four strings, one list, hello batching
- LIST
ComfyUI's native text widgets give you one string per node, which is fine until you want to run a batch - a list of prompts, a set of styles, a handful of seeds-as-strings. That's where Text2List (2lab) comes in: it takes up to four strings and packs them into a single LIST output, ready to drive a batch iteration or a list-consuming node. The display name spells it out: "Text To List, multiple texts combined into a list."
The wider context matters here. This pack is built for publishing workflows to the 2lab server as APIs, and API-driven workflows are batch workflows - you want to feed ten prompts in and get ten images back. Text2List is the assembly step: collect your individual prompts, bundle them into one list, and hand the list to whatever iterates it. Even outside the API story, it's the glue between "I have several strings" and "I need a list."
Inputs
All four inputs are optional, so you can use one, two, or all:
text_1…text_4- up to four strings to bundle.
Output
LIST- a single list containing the strings you supplied, in order. Wire it into any node that consumes a list of strings - a batch loop, a list-splitting node, a list-aware prompt processor.
How it works
Nothing mysterious: collect the provided strings into a Python list and emit it. Empty slots simply don't add anything to the list. The value is all in the data-shape conversion - turning scattered single strings into one iterable is the step that unlocks batch pipelines, and core ComfyUI makes you build that shape yourself.
Installing it
Same as every node in this pack. ComfyUI Manager → search "comfyUI-tool-2lab" → install, or:
cd ComfyUI/custom_nodes
git clone https://github.com/AI2lab/comfyUI-tool-2lab
Restart ComfyUI. No models, no extra pip packages.
Gotchas
- Optional doesn't mean always-on. All four fields are optional, so an empty input contributes nothing to the list. That's usually what you want - just remember an empty node outputs an empty list, and an empty list fed downstream can make a batch silently do nothing.
- It's for building lists, not splitting them. If you already have a list and need to split or filter it, look at the concatenate sibling or a dedicated list node. This one only assembles.
- Repo visibility. The pack's GitHub page currently returns 404, likely because the author made it private or renamed it. Fresh installs can fail while existing setups keep working - known quirk, not your error.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| text_1opt | STRING | — | |
| text_2opt | STRING | — | |
| text_3opt | STRING | — | |
| text_4opt | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| LIST | LIST | — |