RgthreePowerPrompt
RgthreePowerPrompt combines prompt text, CLIP encoding, and LoRA or embedding insertion in one node that passes MODEL and CLIP through.
Rgthree Power Prompt
Description
RgthreePowerPrompt is a compact, do-everything text prompt node. It takes a prompt string, optionally accepts a MODEL and CLIP, and returns the encoded CONDITIONING along with the same MODEL and CLIP so they can continue down the graph. It also accepts helper combo inputs that let you insert LoRA tags, embedding tags, and saved prompt snippets directly into the prompt without leaving the node or typing the syntax by hand.
The node is useful when you want a single, self-contained prompt stage: type your positive prompt, pick any LoRAs or embeddings to inject, and then wire the resulting MODEL, CLIP and CONDITIONING onward to your sampler. Because the MODEL and CLIP are passed through as outputs, you can chain several prompt nodes (for example, one for the positive prompt and another for the negative prompt) and have LoRA insertions apply to the model and clip as they go through.
Inputs
- prompt (STRING, required): The prompt text. This is the core of the node. It can include standard ComfyUI prompt syntax and, as described by the helper inputs, LoRA and embedding tags inserted via the combo widgets.
- opt_model (MODEL, optional): The model to pass through. If supplied, it is returned on the MODEL output; any LoRA tags inserted into the prompt are applied to it.
- opt_clip (CLIP, optional): The CLIP model used to encode the prompt into CONDITIONING, and returned on the CLIP output. LoRA tags inserted into the prompt are also applied to it.
- insert_lora (COMBO, optional): A picker for the available LoRAs. Selecting a LoRA inserts its
<lora:...>tag into the prompt field, so you do not have to remember the exact name or weight syntax. It does not create a separate input branch; it edits the prompt text. - insert_embedding (COMBO, optional): A picker for the available textual inversion embeddings. Selecting one inserts the embedding tag into the prompt field.
- insert_saved (COMBO, optional): A picker for saved prompt snippets. Selecting one inserts the saved text into the prompt field, which is handy for reusing common phrases, styles or boilerplate.
The insert_lora, insert_embedding and insert_saved widgets are there to help you build the prompt string. The actual behavior comes from the resulting prompt text.
Outputs
- CONDITIONING: The encoded conditioning produced by encoding
promptwithopt_clip. This is what you would normally feed into a sampler's positive or negative conditioning input. - MODEL: The model passed in through
opt_model, returned after any LoRA tags inserted into the prompt have been applied. If no model is connected, this output will be empty. - CLIP: The clip passed in through
opt_clip, returned after any LoRA tags inserted into the prompt have been applied. If no clip is connected, this output will be empty. - STRING: The final prompt text, as it exists after any insertions. This is useful for chaining into another prompt node, logging, or feeding nodes that accept a raw string.
Usage Notes
- Connect
opt_modelandopt_clipwhen you intend to use the MODEL and CLIP passthrough outputs, or when you want LoRA tags in the prompt to affect the model and clip. - Use separate RgthreePowerPrompt nodes for positive and negative prompts. The positive node can insert and apply LoRAs, while the negative node can stay simple.
- The
insert_lora,insert_embeddingandinsert_savedwidgets are convenience selectors. Picking an entry modifies the prompt text; it does not add an additional processing step by itself. - If you only need the CONDITIONING output, you can leave the model output unwired, but you still need a CLIP connection for encoding.
- The STRING output is a straightforward way to reuse the fully composed prompt elsewhere without duplicating the text.
Comments
Sign in with GitHub to join the discussion.