Visit ComfyUI Online for ready-to-use ComfyUI environment
Dynamically select and customize text prompts for AI artists efficiently.
The FL_PromptSelector node is designed to help you dynamically select and customize text prompts from a list of provided options. This node is particularly useful for AI artists who need to manage and manipulate multiple text prompts efficiently. By allowing you to prepend and append text to a selected prompt, it offers a flexible way to create complex and contextually rich prompts. The main goal of this node is to streamline the process of selecting and modifying prompts, making it easier to generate varied and creative outputs.
This parameter allows you to add text at the beginning of the selected prompt. It is a multiline string input, meaning you can enter multiple lines of text if needed. The default value is an empty string. This feature is useful for adding consistent introductory phrases or context to your prompts.
This is a multiline string input where you can list all the possible prompts, each on a new line. The node will select one of these prompts based on the specified index. This parameter is essential as it provides the pool of prompts from which the selection is made.
This parameter allows you to add text at the end of the selected prompt. Similar to prepend_text
, it is a multiline string input with a default value of an empty string. This feature is useful for adding consistent concluding phrases or additional context to your prompts.
This integer parameter specifies which prompt to select from the list provided in the prompts
parameter. The index is zero-based, meaning an index of 0 selects the first prompt. The default value is 0, with a minimum value of 0 and a maximum value of 100. This parameter is crucial for determining which specific prompt will be used.
The output is a single string that represents the selected and modified prompt. This string includes any text added through the prepend_text
and append_text
parameters, providing a fully customized prompt ready for use in your AI art projects.
prompts
parameter contains a sufficient number of prompts to choose from, especially if you plan to use higher index values.prepend_text
and append_text
parameters to add consistent context or framing to your prompts, enhancing the coherence and creativity of the generated outputs.index
value to ensure it falls within the range of available prompts to avoid errors.{index}
is out of range. Please provide an index between 0 and {num_prompts - 1}
.index
parameter to a value within the valid range, which is from 0 to the number of prompts minus one.© Copyright 2024 RunComfy. All Rights Reserved.