9a186335e870133034bfcf6765e3c118b66c4dd8
Added a secondary node specific for inputting clip and outputting each prompt as a condition
MultiString Prompts - ComfyUI Custom Node
This is a simple but powerful custom node for ComfyUI, designed to help you manage and sequence multiple prompts from a single, clean interface.
It's ideal for workflows like sequential video generation where you need to feed a series of different prompts into your model.
What It Does
- 5 Prompt Slots: Provides five large, multiline text boxes for your main prompts.
- Prefix & Suffix: Includes two compact, single-line text boxes to add a
prefix(like style or quality keywords) and asuffixto all of your prompts. - Enable/Disable Toggles: You can instantly turn the
prefixorsuffixon or off using "true/false" dropdowns, allowing you to test prompts without deleting your keywords. - Smart Empty Handling: If you leave a prompt box empty, the node is smart enough to output a completely empty string (it won't just output
prefix,suffix). - List Output: In addition to 5 individual string outputs, it provides a single
prompt_listoutput. This is perfect for feeding all 5 prompts into a "Loop" or "Batch" node for a more compact workflow.
Inputs & Outputs
Inputs
enable_prefix(toggle): Set totrueto use the prefix,falseto ignore it.enable_suffix(toggle): Set totrueto use the suffix,falseto ignore it.prefix(string): A single-line string added to the beginning of each prompt.suffix(string): A single-line string added to the end of each prompt.multi_prompt_1-multi_prompt_5(string): Five multiline text boxes for your individual prompts.
Outputs
prompt_1-prompt_5(string): The final, processed string for each corresponding prompt. (e.g.,prefix,multi_prompt_1,suffix).prompt_list(LIST): A single ComfyUI list that contains all 5 processed strings.
How to Install
- Navigate to your ComfyUI installation directory.
- Go into the
ComfyUI/custom_nodes/folder. - Create a new folder inside
custom_nodes(e.g.,MultiStringPrompts). - Place the
multi_prompt_node.pyand__init__.pyfiles inside that new folder. - Restart your ComfyUI server.
The node will be available by right-clicking the canvas and selecting Add Node > MyCustomNodes > MultiString Prompts.
Languages
Python
100%