view_combo
Turn a multiline text block into a list of prompts
- STRING
- COMBO
view_combo takes a big multiline block of text - one item per line - and slices it into a list of strings. Set start_index and max_rows, and out the other side come two list outputs, STRING and COMBO, that you can feed into anything expecting a sequence of prompts.
The workflow it serves is prompt scheduling, and this pack is built for video, so that's where it shines. AnimateDiff, Wan, LTX - they all want per-frame or per-segment prompt sequences, and writing those by hand as separate nodes is miserable. With view_combo you keep your whole script in one text box - line 1 for frame range 1, line 2 for the next segment, and so on - and the node hands the schedule to your conditioning as a list. Change a line, rerun, done. The README's own "Controller" stacks lean on exactly this pattern, pairing prompt lists with the sampler so you don't rewire anything when the story changes.
How it works
The prompt input is the text block. The node splits it on line breaks, then takes max_rows rows starting at start_index. Both outputs are the same sliced list of strings - STRING and COMBO are two ways of presenting the same data so it matches whichever socket a downstream node expects. One is typically wired into nodes that consume string lists; the other feeds combo/dropdown-style inputs. If your list needs to skip the first line (say, a header or a comment), bump start_index to 1.
The inputs and outputs that matter
prompt(STRING, multiline) - your text block, one item per line. Required.start_index(INT, default 0) - which line to start slicing from.max_rows(INT, default 1000) - how many lines to take. Leave it high and it just takes everything.STRINGandCOMBO(outputs) - the sliced list, in two flavors.
How to install it
It's part of ComfyUI-Apt_Preset. Install via ComfyUI Manager (search "ComfyUI-Apt_Preset") or:
cd ComfyUI/custom_nodes
git clone https://github.com/cardenluo/ComfyUI-Apt_Preset
then run install.bat (Windows) or pip install -r requirements.txt and restart ComfyUI. No model downloads needed.
Common issues & troubleshooting
The main gotcha is blank lines and trailing newlines - they become empty strings in your list, and an empty prompt in the middle of a video schedule can produce a dead segment. Keep the text block tidy: no stray blank lines, no trailing carriage returns. If you're pasting from a document, that's the first thing to check.
The max_rows default of 1000 is generous, so it's rarely your problem; when a list comes out shorter than expected, look at start_index first. And the pack-level caveat applies as always: this is a niche pack by a Bilibili-based author with a translated README. If the node is missing entirely, the pack's dependencies weren't installed - the recurring community report is IMPORT FAILED, fixed by running install.bat and restarting ComfyUI.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| prompt | STRING | text | — |
| start_index | INT | 00–9999 | — |
| max_rows | INT | 10001–9999 | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| STRING | * | — |
| COMBO | * | — |