Visit ComfyUI Online for ready-to-use ComfyUI environment
Efficiently manage and manipulate tags with selector patterns, weights, and formatting for AI artists.
The TagsSelector
node is designed to help you manage and manipulate lists of tags efficiently. This node allows you to select specific tags from a list based on a given selector pattern, apply weights to the tags, and format the output with optional prefixes and suffixes. It is particularly useful for AI artists who need to organize and customize tags for various purposes, such as categorizing artwork or applying specific attributes to their creations. By using this node, you can streamline the process of handling tags, ensuring that they are formatted correctly and consistently.
This parameter accepts a list of tags that you want to process. The default value is an empty list ([]
). The tags in this list will be selected and formatted based on the other input parameters.
This parameter is a string that specifies the pattern for selecting tags from the tags_list
. The default value is ":"
. The selector can include indices and ranges, allowing you to pick specific tags or a range of tags from the list.
This parameter is a float that applies a weight to each tag in the tags_list
. The default value is 1.0
, with a minimum value of -10.0
and a maximum value of 10.0
. The weight modifies the tags by appending the weight value to each tag, which can be useful for emphasizing certain tags.
This boolean parameter ensures that the output tags are separated by commas. The default value is True
. When enabled, it adds commas between tags, ensuring proper separation and formatting.
This optional string parameter allows you to add a prefix to the output tags. The default value is an empty string (""
). The prefix is added to the beginning of the formatted tags, which can be useful for adding context or categorization.
This optional string parameter allows you to add a suffix to the output tags. The default value is an empty string (""
). The suffix is added to the end of the formatted tags, which can be useful for adding context or categorization.
The output is a single string that contains the selected and formatted tags. The tags are processed based on the input parameters, ensuring that they are correctly weighted, separated by commas, and optionally prefixed or suffixed. This output can be used directly in your AI art projects or further processed as needed.
selector
parameter to precisely pick the tags you need from the tags_list
. You can specify individual indices or ranges to customize the selection.weight
parameter to emphasize certain tags. This can be particularly useful when you want to highlight specific attributes or categories in your tags.ensure_comma
parameter to ensure that your tags are properly separated and formatted, making them easier to read and use.prefix
and suffix
parameters to add context or categorization to your tags, making them more informative and organized.selector
parameter specifies an index that is outside the bounds of the tags_list
.selector
parameter are within the range of the tags_list
. Double-check the length of your list and adjust the selector accordingly.selector
parameter contains non-numeric values that cannot be converted to integers.selector
parameter contains only valid numeric indices or ranges. Remove any non-numeric characters or values.tags_list
parameter is not provided as a list.tags_list
parameter is a list of tags. If you are passing a single tag, wrap it in a list (e.g., ["tag"]
).© Copyright 2024 RunComfy. All Rights Reserved.