ComfyUI > Nodes > ComfyUI_Fill-Nodes > FL Prompt Selector

ComfyUI Node: FL Prompt Selector

Class Name

FL_PromptSelector

Category
🏵️Fill Nodes
Author
filliptm (Account age: 1737days)
Extension
ComfyUI_Fill-Nodes
Latest Updated
2024-06-23
Github Stars
0.12K

How to Install ComfyUI_Fill-Nodes

Install this extension via the ComfyUI Manager by searching for ComfyUI_Fill-Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_Fill-Nodes in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

FL Prompt Selector Description

Dynamically select and customize text prompts for AI artists efficiently.

FL Prompt Selector:

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.

FL Prompt Selector Input Parameters:

prepend_text

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.

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.

append_text

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.

index

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.

FL Prompt Selector Output Parameters:

STRING

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.

FL Prompt Selector Usage Tips:

  • Ensure that your prompts parameter contains a sufficient number of prompts to choose from, especially if you plan to use higher index values.
  • Use the prepend_text and append_text parameters to add consistent context or framing to your prompts, enhancing the coherence and creativity of the generated outputs.
  • Double-check the index value to ensure it falls within the range of available prompts to avoid errors.

FL Prompt Selector Common Errors and Solutions:

Index {index} is out of range. Please provide an index between 0 and {num_prompts - 1}.

  • Explanation: This error occurs when the specified index is either negative or exceeds the number of available prompts.
  • Solution: Adjust the index parameter to a value within the valid range, which is from 0 to the number of prompts minus one.

FL Prompt Selector Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_Fill-Nodes
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.