⭐ Star Prompt Picker
Random or one-by-one prompts from a text file, with progress that survives restarts
- prompt
- current_index
- total_prompts
- remaining_prompts
The boring way to batch-test prompts is to hand-edit the text box between runs. The smart way is a prompt list on disk and a node that feeds one line at a time. Star Prompt Picker is that node: it reads prompts from a .txt file (one prompt per line) or a folder (one .txt per prompt), and hands them to your CLIP encoder either at random or one by one, remembering where it left off between runs.
The killer feature is that saved progress. In One By One mode the node persists its current index, so you can generate a batch of images across multiple sessions and never repeat or skip a prompt. That's genuinely better than the naive random-pick approach for anything systematic - grid testing, dataset building, "generate 50 variations for a style study." Random mode, with an optional seed, is there when you want chaos.
How it works
- pick_source -
Pick From File(each line is a prompt, empty lines ignored) orPick From Folder(each.txtfile's full text is one prompt, optionally recursing into subfolders via include_subfolders). - mode -
Random(seed-able) orOne By One(sequential with saved progress). - start_index - where One By One starts when there's no saved progress yet, or when reset_progress is on.
- file_path / folder_path - where your prompts live, depending on the pick source.
- seed - optional;
0means a fresh random pick each run.
Outputs: prompt (the chosen text - wire into your CLIP encode), plus current_index, total_prompts and remaining_prompts as integers, which are handy for a display node or to drive progress-aware logic in your workflow.
Install
Ships in the Starnodes2024/ComfyUI_StarNodes pack:
cd ComfyUI/custom_nodes
git clone https://github.com/Starnodes2024/ComfyUI_StarNodes
cd ComfyUI_StarNodes
pip install -r requirements.txt
Restart, search star. No per-node dependencies.
Where people get burned
The path input is a filesystem path relative to your ComfyUI root - point it at the wrong location and you get an empty pick (or an error), and the node won't auto-discover your file. Also, "One By One saves progress" cuts both ways: if you change the file contents and keep the same saved index, you may resume mid-file rather than at the top - flip reset_progress when you've edited the list and want to start over. And in Folder mode, remember each file is one prompt in full: a multi-line .txt becomes one giant prompt, not several.
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| pick_source | COMBO | Pick From File | Choose where to pick prompts from. File: one prompt per line. Folder: one .txt file per prompt. |
| file_path | STRING | Path to a .txt file where each line is one prompt (empty lines are ignored). Used when Pick From File is selected. | |
| folder_path | STRING | Path to a folder containing .txt files. Each file is treated as a single prompt (full file text). Used when Pick From Folder is selected. | |
| mode | COMBO | One By One | Random: pick a random prompt each run. One By One: iterate prompts sequentially and save progress. |
| start_index | INT | 00–1000000000 | Starting index for One By One mode (used when no saved progress exists, or when reset_progress is enabled). |
| reset_progressopt | BOOLEAN | false | If enabled, resets saved progress and starts at start_index. |
| include_subfoldersopt | BOOLEAN | false | Only for Pick From Folder: include .txt files in subfolders. |
| seedopt | INT | 00–18446744073709550000 | Optional seed for Random mode. 0 = use a new random seed each run. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| prompt | STRING | — |
| current_index | INT | — |
| total_prompts | INT | — |
| remaining_prompts | INT | — |