Visit ComfyUI Online for ready-to-use ComfyUI environment
Efficiently splits single prompts into multiple segments for AI artists, handling up to 50 outputs.
The VRGDG_PromptSplitter is a versatile node designed to facilitate the division of a single prompt text into multiple segments, which can be particularly useful for AI artists working with complex or lengthy prompts. This node is part of the VRGDG category and is tailored to handle up to 50 separate text outputs, making it ideal for scenarios where you need to break down a large prompt into manageable parts for further processing or analysis. By splitting the prompt text based on a specified delimiter, the node allows for efficient organization and manipulation of text data, enhancing the workflow for creative projects that require detailed prompt management.
The prompt_text parameter is a string input that allows you to provide the text you wish to split into multiple segments. This parameter supports multiline input, making it suitable for lengthy and complex prompts. The text is split based on the pipe (|) character, and each segment is trimmed of whitespace. If the text does not contain the specified delimiter, the entire text is treated as a single segment. This parameter does not have a minimum or maximum length, but it defaults to an empty string if not specified.
The scene_count parameter is an integer that determines the number of segments the prompt text will be divided into. It directly impacts the number of output strings generated by the node. The value of scene_count can range from a minimum of 1 to a maximum of 50, with a default value of 2. This parameter allows you to control the granularity of the text segmentation, ensuring that the output matches your specific needs for prompt management.
Each text_output parameter represents a segment of the original prompt text, split according to the specified scene_count. The outputs are named sequentially from text_output_1 to text_output_50, corresponding to the number of segments requested. If the number of segments in the prompt text is less than the scene_count, the remaining outputs will be empty strings. These outputs provide a structured way to access each part of the split text, facilitating further processing or integration into other workflows.
|) character consistently as a delimiter in your prompt text to achieve accurate segmentation.scene_count parameter based on the complexity and length of your prompt to avoid unnecessary empty outputs and to match your specific project requirements.scene_count, resulting in some outputs being empty.|) character to match the scene_count. Alternatively, reduce the scene_count to match the actual number of segments in your text.RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.