Visit ComfyUI Online for ready-to-use ComfyUI environment
Create customized prompts with weighted text elements for AI model input.
The PromptComposerCustomLists
node is designed to help you create customized prompts by combining various text elements and applying specific weights to them. This node is particularly useful for AI artists who want to generate complex and nuanced prompts for their AI models. By allowing you to input multiple text elements and assign weights to each, the node helps in crafting detailed and weighted prompts that can influence the output of your AI models in a more controlled and precise manner. The main function of this node, promptComposerCustomLists
, takes optional and required text inputs, processes them based on their weights and active status, and returns a well-structured prompt string.
This is an optional string input parameter that allows you to add an initial text element to your prompt. If provided, this text will be included in the final prompt. This parameter is useful for adding a base or introductory text to your prompt. The value must be a string.
This is a required boolean parameter that determines whether the custom lists and their weights should be considered in the prompt generation. If set to True
, the node will process the custom lists and their weights; if set to False
, it will ignore them. The default value is True
.
<custom_list_name>
Each custom list name corresponds to a specific text file in the custom-lists directory. These parameters allow you to select a specific text element from the custom list. The value must be a string selected from the list, with -
indicating no selection. The default value is -
.
<custom_list_name>
_weightThis is a required float parameter associated with each custom list name. It allows you to assign a weight to the selected text element from the custom list. The weight influences the importance of the text element in the final prompt. The value ranges from 0 to 1.95, with a default value of 1. The weight is applied using the applyWeight
function.
This is the output string parameter that contains the final composed prompt. The prompt is generated by combining the optional text input and the selected text elements from the custom lists, each weighted according to their respective weights. The output is a single string that can be used as a prompt for your AI models.
active
parameter is set to True
if you want the custom lists and their weights to be considered in the prompt generation.text_in_opt
parameter to add a base or introductory text to your prompt, which can help set the context for the AI model.<custom_list_name>
<custom_list_name>
_weighttext_in_opt
parameter is not provided as a string.text_in_opt
parameter is a valid string.active
parameter is not provided as a boolean.active
parameter is a valid boolean value (True or False).© Copyright 2024 RunComfy. All Rights Reserved.