Skeba Select Prompt From Batch
Pick one prompt out of the batch when you don't want all of them
- prompt_batch
- prompt
- current_prompt
Skeba Select Prompt From Batch is the indexed-selection complement to the prompt loop. The loop node hands you a whole list; this one says "give me entry number N" and returns a single prompt. Same family as Skeba Get Image From Batch - a wrapping index picker, but for text - and it exists so you can step through a batch of prompts one at a time instead of detonating the whole queue.
It's part of the ComfyUI-H3-Reference-Library pack (a.k.a. ComfyUI-Minimax-H3-Reference-Library), under Skeba AI Nodes - Utilities. Like the loop node, it keeps its original SkebaPromptFromListNode class name so old workflows load without edits.
How it works
The mechanics are the same modulo trick as its image sibling: it selects prompt_batch[index % len(prompt_batch)], so an out-of-range index wraps around instead of erroring. Drive it with an incrementing counter and it'll cycle through your prompts forever.
The two inputs are worth flagging because both are forced as inputs, not widgets:
- prompt_batch - the
SKEBA_PROMPT_LISToutput of Skeba Batch Text (Prompt Loop). This is a custom type, so it only accepts that node'sprompt_batchoutput, not a plain STRING list. - index - INT, and since it's
forceInput, you drive it from a Primitive INT node or a counter rather than typing in a box. That's what makes the wrapping useful: connect a widget withcontrol_after_generateset to increment and each queue click advances the prompt.
Outputs are prompt (the selected STRING) and current_prompt - an INT that reports the one-based number of what was actually selected. That second output is the sleeper feature: wire it into a Save node's filename prefix and you get clip_3, clip_4 etc. without guessing, even after the index wrapped.
Why you'd reach for it
The classic flow: loop node with your ten prompts → this node → the rest of the workflow. Queue once with the index advancing and you get one generation per prompt, but you can also pause on any prompt by holding the index fixed - re-roll it as many times as you like without burning the other nine. For video work where each render is minutes, that's the difference between iterating deliberately and wasting a night on shots you didn't want.
Installing it
ComfyUI Manager - search "Skeba" or "H3-Reference-Library" - or:
cd ComfyUI/custom_nodes
git clone https://github.com/nikaskeba/ComfyUI-H3-Reference-Library
Restart ComfyUI. No extra dependencies, no models, nothing to download.
The traps
- It only eats
SKEBA_PROMPT_LIST. A normal STRING list won't plug in. If you're trying to feed it something that isn't the loop node'sprompt_batch, that's your problem - this node is the paired half of that exact output. - Wrapping is silent. Index 5000 on a ten-prompt batch gives you prompt 1 again, with
current_prompttelling you it happened. If your outputs start repeating, check whether your counter is just spinning past the end. - Empty batch returns an empty string and 0. Same silent-failure family as the image selector - when you get a blank prompt, the list upstream was empty.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| prompt_batch | SKEBA_PROMPT_LIST | — | |
| index | INT | 00–10000 | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| prompt | STRING | — |
| current_prompt | INT | — |