Nodes/ComfyUi-MpiNodes/Mpi Prompt Override
ComfyUI Node

Mpi Prompt Override

Force custom options into a prompt list without editing it

By MadPonyInteractive·Created 11 months ago·Updated 5 days ago· 3
Mpi Prompt Override
    • override
    options
    seed_override-1

    Here's the workflow tension this node solves: your prompt list is a shared, reusable asset - say a "clothing" list with twenty options - and for this run you want a specific one-off outfit without touching the shared list. Mpi Prompt Override produces a PROMPT_OVR object that, when wired into a MpiPromptList's opt_override input, replaces that list's options with your custom text. One-off variation without fork-in-the-workflow edits.

    How it works

    Two inputs:

    • options - multiline text. When set, this overrides the prompt list's own options. Each line is one option, just like the list's own options field.
    • seed_override - if set to anything other than -1, it overrides the seed that drives that list's random selection. Crucially, it does not change the seed that the list outputs - so downstream randomness stays on the original seed while the choice itself is re-rolled.

    The output is a single override (PROMPT_OVR) wire that you plug into any MpiPromptList's opt_override socket. Internally it's just a tuple of (options, seed_override) - the override is data, not logic, which is why one override object can feed multiple lists.

    The inputs that matter

    • options - the whole point. Leave the shared list alone; type what this run should use.
    • seed_override - only touch this if you want to force a specific selection without changing the global seed. The -1 default means "leave the seed alone."

    Installing it

    cd ComfyUI/custom_nodes
    git clone https://github.com/MadPonyInteractive/ComfyUi-MpiNodes
    

    Restart, or ComfyUI Manager → search ComfyUi-MpiNodes. No deps, pure Python, AGPL-3.0 from v1.2.7 (MIT through 1.2.6).

    When it earns its keep

    Overrides shine in two places: batch variation (same shared lists, but this batch forces a particular subject) and multi-character scenes (each character gets its own override object, so one shared "wardrobe" list can feed several characters with different forced outfits). The pitfall is subtle: an override replaces all options, so an override meant as a tweak can silence the whole list. If a list suddenly stops randomizing, check whether an override is parked on its opt_override socket. When you need the seed forced but the options left alone, use MpiPromptOverrideSeed instead - it's this node's seed-only cousin.

    CategoryMpiNodes/PromptGen

    Inputs (2)

    NameTypeDefaultDescription
    optionsSTRINGWhen set, overrides the prompt list
    seed_overrideINT-1-1–18446744073709550000If not -1 it overrides the current seed changing the resulting random selection Does not affect the return seed of the prompt list!

    Outputs (1)

    NameTypeDescription
    overridePROMPT_OVR