Nodes/ComfyUi-MpiNodes/Mpi RandPromptGen Override Section
ComfyUI Node

Mpi RandPromptGen Override Section

Pin one section of a random prompt

By MadPonyInteractive·Created 11 months ago·Updated 5 days ago· 3
Mpi RandPromptGen Override Section
  • overrides
  • overrides
section
options
seed_override-1

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, or light. Note what's missing: no pre_positive/post_positive (those are your free-text boxes on the generator itself) and no pronoun or indoors_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.

CategoryMpiNodes/PromptGen

Inputs (4)

NameTypeDefaultDescription
sectionCOMBO7 options: shot_type, hair, clothes, pose, expression, location, +1
optionsSTRINGWhen set, overrides the list
seed_overrideINT-1-1–18446744073709550000If not -1 it overrides the current seed changing the resulting random selection for the selected section. Does not affect the global seed!
overridesoptMPI_RANDPROMPT_OVR

Outputs (1)

NameTypeDescription
overridesMPI_RANDPROMPT_OVR