Visit ComfyUI Online for ready-to-use ComfyUI environment
Dynamically replace keywords in text with random entries from a specified file for AI artists seeking variability and creativity.
The Wildcards node is designed to dynamically replace keywords in a text with randomly selected entries from a specified text file. This functionality is particularly useful for AI artists who want to introduce variability and creativity into their text-based prompts or conditioning inputs. By leveraging wildcards, you can generate diverse and unique text outputs, which can be further processed or used as inputs for other nodes. The node supports optional integration with CLIP for tokenization and encoding, enhancing its utility in text-to-image generation workflows.
This parameter specifies the text file from which random entries will be selected. The file should be located in the "chibi-wildcards" folder. The entries in this file will be used to replace the keyword in the provided text. The list of available text files is sorted and presented for selection.
The keyword parameter defines the placeholder in your text that will be replaced by the randomly selected entries from the text file. The default value is "wildcard", but you can customize it to any string that matches the placeholder in your text.
This parameter determines the number of random entries to be selected from the text file. The selected entries will be concatenated with spaces. The minimum value is 1, the maximum is 10, and the default is 1. Adjusting this value allows you to control the amount of variability introduced into your text.
An optional parameter that accepts a CLIP model. If provided, the node will tokenize and encode the generated text using the CLIP model, returning conditioning data that can be used in subsequent nodes. This enhances the integration of text and image generation workflows.
An optional integer parameter that sets the seed for the random number generator. Providing a seed ensures reproducibility of the random selections. If not provided, the random selections will vary each time the node is executed.
An optional string parameter that contains the text in which the keyword will be replaced by the selected entries. If this parameter is not provided, the node will simply return the selected entries without any replacement.
If the clip
parameter is provided, this output will contain the conditioning data generated by tokenizing and encoding the text with the CLIP model. This data can be used in subsequent nodes to influence image generation or other processes.
This output contains the final text after the keyword has been replaced by the selected entries. If the text
parameter was provided, it will be the modified text; otherwise, it will be the concatenated entries from the text file.
entries_returned
parameter to concatenate multiple random entries.seed
parameter to ensure reproducibility when you need consistent results across different runs.clip
parameter to generate conditioning data that can be used for more advanced text-to-image generation tasks.keyword
parameter to match specific placeholders in your text, allowing for more flexible text manipulation.entries_returned
parameter is set to a value outside the allowed range.entries_returned
parameter to a value between 1 and 10.clip
parameter is not provided correctly.clip
parameter if you intend to use CLIP for tokenization and encoding.© Copyright 2024 RunComfy. All Rights Reserved.