Text Load Line From File
Feed prompts from a text file, one per run
Write a list of prompts in a .txt file, one per line, and this node feeds them into your graph one at a time - a fresh line every time you queue. Text Load Line From File is the batch-prompting trick: instead of pasting prompts by hand, you keep them in a file and let the queue march through them. Pair it with a batch count and you can render a whole prompt list unattended.
It's the text cousin of Load Image Batch, and it works the same way in spirit: a cursor that advances through a source each run.
How it works
The README describes two modes. In sequential mode it loads lines one per batch-prompt run, walking down the file as you queue - line 1, then line 2, then line 3. Alternatively you can select a specific line by index and it just returns that one line every time, which is handy when you're iterating on prompt number 7 and don't want the counter moving.
So: point it at a file, choose whether you're stepping through or pinning an index, and it returns the current line as text.
Inputs and outputs that matter
The inputs that matter are the file path to your .txt and the mode/index - sequential stepping versus a fixed line number. The output is a STRING: the single line, which you feed into a CLIP Text Encode or this pack's Text to Conditioning to turn it into a prompt.
A clean batch-prompt setup looks like this: Text Load Line From File → Text to Conditioning (or CLIP encode) → your sampler, with the queue set to run as many times as you have lines. Each run pulls the next prompt automatically.
How to install it
ComfyUI Manager: search was-node-suite-comfyui, install, restart. Manually:
cd ComfyUI/custom_nodes
git clone https://github.com/WASasquatch/was-node-suite-comfyui
then install the pack's requirements.txt in your ComfyUI venv and restart. It's reading a text file - no heavy dependencies.
Common issues & troubleshooting
It keeps returning the same line. You're in index mode with a fixed line number, or you're not actually re-queuing. Sequential mode only advances when a new prompt runs, so to step through the whole file either queue repeatedly or set a batch count equal to your line count.
Blank lines throw off the sequence. An empty line in the file is still a line - it'll come through as an empty prompt on its turn. Strip trailing blank lines and stray whitespace so your count matches what you expect.
The counter is somewhere unexpected. Like the batch image loader, the position is tied to the file you gave it; changing the file resets where you are. If you edited the list mid-run, don't be surprised it jumped.
Encoding weirdness with special characters. Save the file as UTF-8. Odd characters from a file saved in some other encoding can come through mangled.
Whole pack fails to import after a ComfyUI update. The usual WAS Node Suite situation - it downgrades a few packages for its older modules, and a ComfyUI bump can break the startup import. Re-run the pack's requirements against the activated venv (or install.bat). Maintenance-only since late 2023, so budget for the occasional reinstall.
Inputs (0)
No inputs
Outputs (0)
No outputs