Visit ComfyUI Online for ready-to-use ComfyUI environment
Manage and manipulate data tags efficiently with exact and regex-based matching for organizing and filtering data elements.
The 0246.Tag
node is designed to manage and manipulate tags within your data workflow. This node allows you to apply, check, remove, or clear tags from your data elements, providing a flexible way to handle metadata or identifiers associated with your data. By using this node, you can efficiently organize and filter your data based on tags, making it easier to manage complex workflows. The node supports both exact and regex-based tag matching, giving you the ability to perform precise or pattern-based operations on your tags. This functionality is particularly useful for AI artists who need to categorize and process large datasets with specific attributes.
This parameter accepts the input data that you want to process. It is a required parameter and expects a list of data elements. Each element can be a wrapped object containing tags and associated IDs. The node will perform the specified operation on these elements based on the provided tags and modes.
This parameter determines the operation mode of the node. It accepts one of the following options: apply
, check
, remove
, or clear
. The apply
mode adds a tag to the data, check
mode verifies the presence of a tag, remove
mode deletes a specific tag, and clear
mode removes all tags from the data. The default value is apply
.
This is a boolean parameter that, when set to True
, inverts the operation's effect. For example, in check
mode, it will return data elements that do not have the specified tag. The default value is False
.
This parameter specifies the matching mode for tags. It accepts either exact
or regex
. The exact
mode matches tags exactly as specified, while the regex
mode allows for pattern-based matching using regular expressions. The default value is exact
.
This parameter is a string that represents the tag to be applied, checked, removed, or cleared. It supports multiline input, allowing you to specify complex tags or patterns. The default value is tag
.
This hidden parameter is used internally to store prompt information. It is not intended to be modified by the user.
This hidden parameter is used internally to store a unique identifier for the operation. It is not intended to be modified by the user.
This hidden parameter is used internally to store workflow-related information. It is not intended to be modified by the user.
This parameter returns the processed data after the specified tag operation has been applied. The output is a list of data elements, which may be wrapped or unwrapped depending on the operation performed. This allows you to easily integrate the results back into your workflow for further processing or analysis.
apply
mode to add new tags to your data elements, which can help in categorizing and filtering data in subsequent steps.check
mode to verify the presence of specific tags before performing operations, ensuring that only relevant data is processed.remove
mode is useful for cleaning up tags that are no longer needed, helping to maintain a tidy and organized dataset.clear
mode to remove all tags from data elements, which can be useful when resetting or reinitializing your data for a new workflow.regex
tag mode to perform advanced pattern matching, which can be particularly powerful for complex tagging schemes.check
or remove
operation.ops_mode
parameter and ensure it is set to one of the supported values: apply
, check
, remove
, or clear
.© Copyright 2024 RunComfy. All Rights Reserved.