Visit ComfyUI Online for ready-to-use ComfyUI environment
Dynamically generate text prompts using wildcards for creative and varied AI art generation.
The WildcardPromptFromString
node is designed to dynamically generate text prompts by replacing wildcard placeholders within a given string. This node is particularly useful for AI artists who want to create varied and complex prompts without manually crafting each one. By leveraging wildcards, you can introduce randomness and variability into your prompts, making them more creative and less repetitive. The node processes the input string, identifies wildcard patterns, and replaces them with appropriate values based on predefined rules or random selection. This functionality is essential for generating diverse and engaging content, especially in creative fields like AI art generation.
This parameter accepts a string containing wildcard placeholders that need to be replaced. The wildcards are identified by double underscores (e.g., __wildcard__
). The input string can be multiline, allowing for more complex and detailed prompts. This parameter is crucial as it defines the template that will be dynamically populated.
This parameter is another string that will be used in conjunction with the wildcard_text
to generate the final output. It can also be multiline and does not support dynamic prompts. This string serves as the base text that will be modified by replacing the wildcards.
This boolean parameter determines the mode of operation. When set to True
(Populate), the node will replace the wildcards with actual values. When set to False
(Fixed), the wildcards will remain unchanged. The default value is True
, making it easier to generate varied prompts without additional configuration.
This integer parameter is used to control the randomness of the wildcard replacement. By setting a specific seed value, you can ensure that the same wildcards are replaced with the same values each time, providing consistency. The default value is 0
, and it can range from 0
to 0xffffffffffffffff
.
This parameter provides a list of options for adding specific wildcards to the text. It helps in customizing the prompt by allowing you to select predefined wildcards that can be added to the input string. This feature is useful for quickly incorporating common wildcards without manually typing them.
The output is a single string where all the wildcards in the wildcard_text
have been replaced according to the specified rules and parameters. This string is the final prompt that can be used for various creative applications, such as AI art generation. The output is designed to be ready for immediate use, saving you time and effort in prompt creation.
seed
parameter to control the randomness and ensure consistent results when needed.Select to add Wildcard
feature to quickly add common wildcards, streamlining the prompt creation process.__wildcard__
).0
and 0xffffffffffffffff
.© Copyright 2024 RunComfy. All Rights Reserved.