Visit ComfyUI Online for ready-to-use ComfyUI environment
Efficiently splits text prompts into segments for AI artists, offering control over content distribution using delimiters.
The VRGDG_PromptSplitterV2 node is designed to efficiently divide a given text prompt into multiple segments, which can be particularly useful for AI artists who need to manage and organize large text inputs for various creative projects. This node allows you to specify the number of segments, or "scenes," into which the prompt should be split, providing flexibility and control over the distribution of content. By using a delimiter, such as a pipe (|), the node identifies and separates different parts of the text, ensuring that each segment is clearly defined and ready for further processing or use in your artistic workflow. This functionality is especially beneficial when dealing with complex narratives or instructions that need to be broken down into manageable pieces.
The prompt_text parameter is a multiline string input that contains the text you wish to split into segments. This text can include various instructions, narratives, or any content that needs to be divided for further use. The node uses a pipe (|) as the primary delimiter to identify different segments within the text. If no pipes are present, the node will attempt to split the text based on paragraph breaks or newlines. This parameter is essential as it provides the raw content that the node will process and split.
The scene_count parameter is an integer that determines the number of segments into which the prompt_text will be divided. It allows you to specify how many parts you want the text to be split into, with a minimum value of 1 and a maximum value of 50. The default value is set to 2, providing a starting point for basic splitting tasks. Adjusting this parameter impacts the granularity of the output, enabling you to tailor the segmentation to your specific needs, whether for detailed analysis or broader categorization.
The output parameters, ranging from text_output_1 to text_output_50, represent the individual segments of the prompt_text after it has been split according to the specified scene_count. Each output is a string that contains a portion of the original text, with the number of outputs corresponding to the scene_count value. These outputs are crucial for further processing, as they allow you to work with smaller, more manageable pieces of text, facilitating tasks such as detailed analysis, creative manipulation, or integration into larger projects.
|) as a delimiter in your prompt_text to clearly define where you want the text to be divided.scene_count parameter based on the complexity and length of your prompt_text to achieve the desired level of segmentation.prompt_text is less than the specified scene_count.prompt_text contains enough delimiters (pipes) to create the desired number of segments, or adjust the scene_count to match the available segments.prompt_text than the specified scene_count, resulting in empty outputs.prompt_text is correctly formatted with sufficient content and delimiters, or reduce the scene_count to match the number of available segments.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.