Visit ComfyUI Online for ready-to-use ComfyUI environment
Enhance text prompts with dynamic placeholders from predefined terms for AI artists seeking variety and creativity.
The Text Parse Noodle Soup Prompts node is designed to enhance your text prompts by dynamically replacing placeholders with random selections from a predefined set of terms. This functionality is particularly useful for AI artists looking to add variety and creativity to their text inputs without manually crafting each variation. By leveraging the Noodle Soup Prompts (NSP) methodology, this node fetches a list of terms and their possible replacements, ensuring that your text prompts are enriched with diverse and contextually relevant content. The node can also handle wildcards, providing an additional layer of flexibility. Whether you are generating art descriptions, story elements, or any other text-based content, this node helps you achieve a higher level of dynamism and unpredictability, making your outputs more engaging and unique.
The mode
parameter determines the method used for parsing the text. It can be set to either Noodle Soup Prompts
or Wildcards
. When set to Noodle Soup Prompts
, the node will replace placeholders in the text with random selections from a predefined set of terms. When set to Wildcards
, it will replace placeholders with wildcard values stored in a specific directory. This parameter allows you to choose the parsing strategy that best fits your needs.
The noodle_key
parameter specifies the delimiter used to identify placeholders in the text. By default, it is set to __
. This means that any text enclosed within double underscores will be considered a placeholder and replaced accordingly. You can customize this delimiter to suit your specific requirements, ensuring that the node correctly identifies and processes the placeholders in your text.
The seed
parameter is an integer value used to initialize the random number generator. By setting a specific seed, you can ensure that the random selections made by the node are reproducible. This is particularly useful for achieving consistent results across multiple runs. The default value is 0
, which means that the random selections will vary each time the node is executed. You can set this parameter to any integer value within the range of 0
to 0xffffffffffffffff
.
The text
parameter is the input text that contains the placeholders to be replaced. This text can be a single string or multiline input, depending on your needs. The node will process this text, identify the placeholders based on the specified noodle_key
, and replace them with random selections from the predefined set of terms or wildcard values. This parameter is essential for the node's operation, as it provides the content to be parsed and enriched.
The parsed_text
parameter is the output text generated by the node after processing the input text. This text will have all the placeholders replaced with random selections from the predefined set of terms or wildcard values, based on the specified mode
. The parsed_text
provides the enriched and dynamic content that can be used for various creative purposes, ensuring that your outputs are more engaging and unique.
seed
value. This will ensure that the random selections made by the node are reproducible.noodle_key
parameter to match the delimiters used in your text. This will help the node correctly identify and process the placeholders.mode
settings to see how the node's behavior changes. Use Noodle Soup Prompts
for predefined term replacements and Wildcards
for more flexible and varied content.<prompt_key>
was not found!© Copyright 2024 RunComfy. All Rights Reserved.