Visit ComfyUI Online for ready-to-use ComfyUI environment
Text prompt segmentation for AI artists, enabling dynamic and varied outputs.
The PromptListGenerator is a versatile node designed to facilitate the creation and manipulation of text prompts by splitting a given text into a list of prompts based on specified delimiters. This node is particularly beneficial for AI artists who need to generate multiple prompts from a single text input, allowing for more dynamic and varied outputs in their creative processes. By leveraging this node, you can efficiently manage and organize text data, making it easier to experiment with different prompt combinations and enhance the creative workflow. The node's primary function is to parse and divide text into manageable segments, which can then be used individually or in combination to generate diverse artistic outputs.
The text parameter is a multiline string input that serves as the source text to be split into a list of prompts. This parameter is crucial as it contains the content that will be divided based on the specified delimiter. The input text can be as simple or complex as needed, allowing for flexibility in the types of prompts you wish to generate.
The delimiter parameter is a string that defines the character or sequence of characters used to split the input text into separate prompts. By default, the delimiter is set to a comma (,), but it can be customized to any character or string that suits your needs. This parameter is essential for determining how the text is segmented, impacting the number and content of the resulting prompts.
The use_regex parameter is a boolean option that, when enabled, allows the delimiter to be interpreted as a regular expression. This provides advanced users with the ability to use complex patterns for text splitting, offering greater control over how the text is divided. By default, this option is set to False, meaning the delimiter is treated as a plain string.
The keep_delimiter parameter is a boolean option that determines whether the delimiter should be retained in the resulting list of prompts. When set to True, the delimiter is included in each segment, which can be useful for maintaining context or structure in the prompts. By default, this option is set to False, meaning the delimiter is removed from the output.
The start_index parameter is an integer that specifies the starting index for numbering the generated prompts. This parameter is useful for organizing and referencing prompts, especially when dealing with large datasets. The default value is 0, but it can be adjusted to any integer to suit your organizational preferences.
The result output parameter is a list of strings, each representing a segment of the original text split according to the specified delimiter. This output is crucial for further processing or use in creative applications, as it provides the individual prompts that can be fed into other nodes or systems for generating artistic outputs. The list format allows for easy manipulation and integration into various workflows.
use_regex option to leverage regular expressions for more complex text splitting, which can be particularly useful for advanced text manipulation tasks.keep_delimiter option if the context provided by the delimiter is important for the interpretation of the prompts.use_regex, verify that the regular expression is correctly formatted.use_regex option is enabled, but the delimiter is not a valid regular expression.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.