Nodes/Dynamic Prompt Nodes/Dynamic Prompt (Combinatorial)
ComfyUI Node

Dynamic Prompt (Combinatorial)

Generates every possible combination from a dynamic prompt template. Variants like {a|b} are expanded exhaustively — {a|b} {x|y} produces a x, a y, b x, b y. Wildcards like __colours__ insert every value from the wildcard file. Outputs the full list of prompts, the total count, and the single prompt at the given index (wraps around if index exceeds total).

By cesasol·Created 5 months ago·Updated 3 months ago· 0
Dynamic Prompt (Combinatorial)
    • prompt
    • all_prompts
    • total_count
    template
    index0
    CategoryDynamic Prompts

    Inputs (2)

    NameTypeDefaultDescription
    templateSTRING
    indexINT00–2147483647

    Outputs (3)

    NameTypeDescription
    promptSTRING
    all_promptsSTRING
    total_countINT