ComfyUI  >  Nodes  >  comfyui-prompt-composer >  Prompt Composer Grouping

ComfyUI Node: Prompt Composer Grouping

Class Name

PromptComposerGrouping

Category
AI WizArt/Prompt Composer Tools
Author
florestefano1975 (Account age: 194 days)
Extension
comfyui-prompt-composer
Latest Updated
5/22/2024
Github Stars
0.2K

How to Install comfyui-prompt-composer

Install this extension via the ComfyUI Manager by searching for  comfyui-prompt-composer
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter comfyui-prompt-composer 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 Cloud 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

Prompt Composer Grouping Description

Manage and manipulate text prompts with weighted control for AI-generated art compositions.

Prompt Composer Grouping:

The PromptComposerGrouping node is designed to help you manage and manipulate text prompts by applying specific weights to them. This node is particularly useful for AI artists who want to fine-tune their text inputs to achieve more precise and controlled outputs in their AI-generated art. By allowing you to set weights and activate or deactivate the prompt, this node provides a flexible way to enhance the influence of certain text elements in your compositions. The main goal of this node is to give you more control over how different parts of your text prompt contribute to the final result, making it easier to achieve the desired artistic effect.

Prompt Composer Grouping Input Parameters:

text_in

This parameter takes a string input that represents the text prompt you want to manipulate. It is a required field, and you must provide a valid string for the node to function correctly. The text you input here will be the basis for any further modifications or weight applications.

weight

This parameter allows you to set the weight of the text prompt. The weight determines the influence of the text prompt in the final output. It is a floating-point number with a default value of 1, a minimum value of 0, and a maximum value of 1.95. You can adjust the weight using a slider, which provides a step value of 0.05. Setting a higher weight will increase the prominence of the text prompt in the final composition.

active

This boolean parameter determines whether the text prompt and its weight should be applied. The default value is False. When set to True, the node will apply the specified weight to the text prompt. If set to False, the text prompt will not be modified, and the original input will be returned.

Prompt Composer Grouping Output Parameters:

text_out

This output parameter returns the modified text prompt as a string. If the input text is not empty, the weight is greater than 0, and the active parameter is set to True, the output will be the weighted text prompt. Otherwise, it will return the original text input.

Prompt Composer Grouping Usage Tips:

  • To emphasize certain parts of your text prompt, set the weight parameter to a higher value. This will make those parts more influential in the final output.
  • Use the active parameter to quickly enable or disable the application of weights without having to change the weight value itself.
  • Experiment with different weight values to see how they affect the final output, especially when combining multiple text prompts.

Prompt Composer Grouping Common Errors and Solutions:

"Input text is required"

  • Explanation: This error occurs when the text_in parameter is left empty.
  • Solution: Ensure that you provide a valid string for the text_in parameter.

"Weight must be between 0 and 1.95"

  • Explanation: This error occurs when the weight parameter is set outside the allowed range.
  • Solution: Adjust the weight parameter to be within the range of 0 to 1.95.

"Active parameter must be a boolean"

  • Explanation: This error occurs when the active parameter is set to a non-boolean value.
  • Solution: Ensure that the active parameter is set to either True or False.

Prompt Composer Grouping Related Nodes

Go back to the extension to check out more related nodes.
comfyui-prompt-composer
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.