Nodes/Chaosaiart-Nodes/🔶 Convert to Main Prompt
ComfyUI Node

🔶 Convert to Main Prompt

Build the always-on prompt layer for the FrameMixer

By chaosaiart·Created 2 years ago·Updated about a year ago· 117
🔶 Convert to Main Prompt
  • add_frame_prompt
  • add_lora
  • MAIN_PROMPT
  • Info
◄add_positiv—►
◄add_negativ—►

This node exists for exactly one reason: chaosaiart_CheckpointPrompt_FrameMixer requires a main_prompt input, and this is the only node in the pack that produces one. It bundles up whatever "always present, regardless of which checkpoint is currently active" content you want - extra positive and negative text, a LoRA, and optionally a FRAME_PROMPT from further upstream - into the MAIN_PROMPT type the Mixer expects.

Every field here is optional, which is worth knowing: you can run this node with nothing plugged in at all and it'll still produce a valid (empty) MAIN_PROMPT, satisfying the Mixer's required input without actually adding anything to your prompt. That's useful if you're building a frame-by-frame checkpoint sequence where each CheckpointPrompt_Frame bundle already carries its own complete prompt and you don't need a shared layer on top.

Inputs and outputs

  • add_frame_prompt (optional, FRAME_PROMPT type) - folds in a frame-scoped prompt bundle from elsewhere in the pack, if you're using one.
  • add_positiv, add_negativ (optional, multiline STRING) - extra positive/negative text that applies across every checkpoint stage in your sequence, not just one.
  • add_lora (optional, LORA type) - a LoRA you want active for the whole run regardless of which checkpoint is currently loaded.
  • Outputs: MAIN_PROMPT - the bundle to feed into the FrameMixer's main_prompt slot - and Info (a STRING, useful for confirming what actually got bundled).

Installing it

ComfyUI Manager: Install via Git URL → https://github.com/chaosaiart/Chaosaiart-Nodes, exactly as documented in the README. A title search for "Chaosaiart" should also work.

Manual:

cd ComfyUI/custom_nodes
git clone https://github.com/chaosaiart/Chaosaiart-Nodes

Linux (activate your venv first, if applicable):

pip install opencv-python
pip install tqdm

Windows: use the Install_windows script bundled with the pack. Restart ComfyUI afterward. No downloads needed - this node just assembles text and a LoRA reference you already have.

Common issues

Forgetting this node entirely and wondering why the Mixer errors. main_prompt is a required input on CheckpointPrompt_FrameMixer with no built-in default - if you skip this node, the Mixer simply won't run. Even an empty Convert to Main Prompt (nothing plugged into any of its optional fields) satisfies the requirement.

Expecting add_lora to stack with per-checkpoint LoRAs automatically. This node bundles a LoRA into the always-on layer, but whether it combines cleanly with a different LoRA attached to an individual CheckpointPrompt_Frame bundle depends on how you've built the rest of the sequence - check your Info output on the Mixer to confirm what's actually active for a given frame if results look off.

One shared Python module for the pack. A failed opencv-python/tqdm install takes down every Chaosaiart node at once, this one included - check the ComfyUI startup console for an import error before assuming something else broke.

Category🔶Chaosaiart/prompt

Inputs (4)

NameTypeDefaultDescription
add_frame_promptoptFRAME_PROMPT—
add_positivoptSTRING—
add_negativoptSTRING—
add_loraoptLORA—

Outputs (2)

NameTypeDescription
MAIN_PROMPTMAIN_PROMPT—
InfoSTRING—