Nodes/ComfyUI-Pixaroma/Prompt From List Pixaroma
ComfyUI Node

Prompt From List Pixaroma

Hand different prompts to different parts of the graph

By pixaroma·Created 5 months ago·Updated 5 days ago· 359
Prompt From List Pixaroma
  • prompts
  • text
index1

Prompt From List Pixaroma is a tiny picker: it takes the prompts output from a Prompt Multi Pixaroma node set to List mode and hands back one prompt from the list, chosen by an index number. That's the whole node - one input for the list, one for the index, one STRING output. But the job it does is quietly important.

The problem it solves is about keeping one prompt library feeding several places. Say your workflow has three scenes - a portrait, a wide shot, a close-up - each with its own prompt. You could type three separate prompts in three text boxes, or you could keep them all in one Prompt Multi node (in List mode) and use a Prompt From List per scene: index 1 for scene A, index 2 for scene B, index 3 for scene C. All the prompts live in one place, where you can see and edit them together, and you don't pile a row of output dots on the library node.

The inputs

  • prompts - the prompt list from a Prompt Multi Pixaroma node in List mode. It's the pack's own PIXAROMA_PROMPT_LIST type, so it only connects to that source. That's fine - the node is deliberately a narrow adapter, not a general list maker.
  • index - 1-based row number in the list (default 1, up to 9999). Index 1 picks the first prompt.

The single output, text, is the prompt at that position. Drop several From List nodes wired to the same Prompt Multi and fan one library out to different parts of the workflow - which is exactly what the docs recommend and the reason it exists.

The one detail that keeps workflows alive

Out-of-range index returns an empty string instead of erroring. That's a design decision worth appreciating: a mistyped index (say, 4 when the list has 3) doesn't crash the run and force you to debug - the affected scene just gets an empty prompt and the rest of the workflow proceeds. Depending on your downstream setup, an empty prompt either does nothing or produces something bland, so it's a "fail soft" rather than a "fail loudly" node. Know which one you want before you wire a live index in.

Installing it

It's part of the ComfyUI-Pixaroma pack - ComfyUI Manager search Pixaroma, Install, restart, or:

cd ComfyUI/custom_nodes
git clone https://github.com/pixaroma/ComfyUI-Pixaroma

No dependencies. House rule: after updating the pack, hard-refresh (Ctrl+Shift+R / Cmd+Shift+R) so cached JS doesn't make the node look stale.

Gotchas

The realistic traps are both about the bigger picture. It only works with Prompt Multi in List mode - a Prompt Multi running its normal "one generation per prompt" mode doesn't emit a list to pick from. And while the empty-string-on-out-of-range behavior keeps runs alive, it can also hide a real bug (a list that shrank because a row got disabled). If a scene suddenly renders with a bare prompt, check your indices before anything else.

Category👑 Pixaroma/💬 Prompt & Text

Inputs (2)

NameTypeDefaultDescription
promptsPIXAROMA_PROMPT_LISTThe prompts list from a Prompt Multi Pixaroma node set to List mode.
indexINT11–99991-based row number in the list. Out of range returns empty.

Outputs (1)

NameTypeDescription
textSTRINGThe prompt picked from the list at the chosen index. Empty if the index is out of range.