Mpi RandPromptGen Override Section
Pin one section of a random prompt
- overrides
- overrides
Random prompt generation is great until you need one thing to stay put. Mpi RandPromptGen Override Section lets you fix a single section of the generator - the pose, the expression, the location - while everything else keeps rolling. You pick the section, type the options, and optionally force that section's seed, and the generator honors it while the rest of the prompt stays random.
How it works
Three inputs:
section- which section to override:shot_type,hair,clothes,pose,expression,location, orlight. Note what's missing: nopre_positive/post_positive(those are your free-text boxes on the generator itself) and nopronounorindoors_outdoors- those aren't section lists.options- multiline text, one option per line. When set, these replace that section's preset list.seed_override- if not -1, overrides the seed for this section's random selection. The tooltip spells it out: it changes the resulting pick for the selected section but "does not affect the global seed."
The optional overrides input chains onto an existing MPI_RANDPROMPT_OVR bundle, and the overrides output wires into Mpi RandPromptGen. Like the other override nodes, this is data-on-a-wire - no preset files touched.
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).
The honest take
This is the surgical instrument next to the Override List's blunt one. Override List replaces a whole preset list globally; Override Section pins one named section, and the per-section seed is the clever part - it means you can hold "expression" fixed across a batch while the rest of the prompt dances around it, without locking the global seed and freezing everything. The trap: a section override with empty options is a valid override that just removes content - if a section goes mysteriously missing, check whether an override is parked on it. And remember these fold into saved presets, so a "temporary" pin can become a default.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| section | COMBO | 7 options: shot_type, hair, clothes, pose, expression, location, +1 | |
| options | STRING | When set, overrides the list | |
| seed_override | INT | -1-1–18446744073709550000 | If not -1 it overrides the current seed changing the resulting random selection for the selected section. Does not affect the global seed! |
| overridesopt | MPI_RANDPROMPT_OVR | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| overrides | MPI_RANDPROMPT_OVR | — |