ComfyUI-KJNodes
Run ComfyUI Easily with InstaSD
Skip the complex setup. InstaSD helps creative professionals build workflows and deploy them to the world:
- One-click deployment
- Any model, any node
- Powerful GPUs for rapid iteration
Available Nodes
ConditioningSetMaskAndCombine
ConditioningSetMaskAndCombine Node Documentation
Overview
The ConditioningSetMaskAndCombine node is part of the ComfyUI-KJNodes collection, designed to simplify and enhance workflows related to masking and condition management. This node allows users to efficiently mask and combine two sets of conditioning elements. By bundling multiple operations into a single node, users can save space and streamline their workflow processes.
Functionality
The ConditioningSetMaskAndCombine node takes two sets of conditioning inputs (positive and negative) along with associated masks and produces combined outputs. This functionality mirrors the behavior found in native ComfyUI nodes but offers an integrated and compact approach.
Inputs
The node accepts the following inputs:
- positive_1: The first set of positive conditioning inputs.
- negative_1: The first set of negative conditioning inputs.
- positive_2: The second set of positive conditioning inputs.
- negative_2: The second set of negative conditioning inputs.
- mask_1: The first mask to be applied.
- mask_2: The second mask to be applied.
- mask_1_strength: A numerical value between 0.0 and 10.0 determining the strength of the first mask. The default value is 1.0.
- mask_2_strength: A numerical value between 0.0 and 10.0 determining the strength of the second mask. The default value is 1.0.
- set_cond_area: An option to determine whether to set the conditional area based on mask bounds or keep it as default.
Outputs
The node produces the following outputs:
- combined_positive: A combined output of the positive conditioning with applied masks.
- combined_negative: A combined output of the negative conditioning with applied masks.
These outputs can then be used in subsequent processes within a ComfyUI workflow to control and modify various design elements based on the configured conditioning.
Usage in ComfyUI Workflows
In ComfyUI workflows, the ConditioningSetMaskAndCombine node is useful for scenarios where users wish to apply multiple masks to different sets of conditioning inputs. By consolidating operations that might otherwise require multiple nodes, this node streamlines processes, allowing for more efficient design and fewer potential points of error.
One application of this node can be found in scenarios where different visual elements or design conditions need to be dynamically adjusted based on specific masks. By controlling the combination of these conditions through mask strengths, users gain finer control over visual outputs.
Special Features and Considerations
- The node allows users to specify the strength of each mask independently, offering flexibility in how conditioning inputs are modified.
- An option to set the mask bounding area ensures that users can control whether conditions are influenced by specific mask regions or their default settings.
- As this node integrates multiple functionalities into one, it helps reduce clutter in the node workspace and simplifies complex workflow designs.
- It is part of the ComfyUI-KJNodes, which is a custom extension for ComfyUI. Users must install this package to access the node's functionalities.
This node enhances the user's ability to efficiently manage processing treatments, providing a structured and streamlined method to apply and combine conditioned operations in a visual interface.