Skip to main content

ConditioningSetMaskAndCombine

KJNodes/masking/conditioning
ConditioningSetMaskAndCombine

Bundles multiple conditioning mask and combine nodes into one,functionality is identical to ComfyUI native nodes

Example

JSON Example
{
  "class_type": "ConditioningSetMaskAndCombine",
  "inputs": {
    "positive_1": [
      "node_id",
      0
    ],
    "negative_1": [
      "node_id",
      0
    ],
    "positive_2": [
      "node_id",
      0
    ],
    "negative_2": [
      "node_id",
      0
    ],
    "mask_1": [
      "node_id",
      0
    ],
    "mask_2": [
      "node_id",
      0
    ],
    "mask_1_strength": 1,
    "mask_2_strength": 1,
    "set_cond_area": "default"
  }
}

This example shows required inputs only. Connection values like ["node_id", 0] should reference actual node IDs from your workflow.

Inputs

NameTypeStatusConstraintsDefault
positive_1CONDITIONINGrequired--
negative_1CONDITIONINGrequired--
positive_2CONDITIONINGrequired--
negative_2CONDITIONINGrequired--
mask_1MASKrequired--
mask_2MASKrequired--
mask_1_strengthFLOATrequiredmin: 0, max: 10, step: 0.011
mask_2_strengthFLOATrequiredmin: 0, max: 10, step: 0.011
set_cond_areaENUM
2 options
  • default
  • mask bounds
required--

Outputs

IndexNameTypeIs ListConnection Reference
0combined_positiveCONDITIONINGNo["{node_id}", 0]
1combined_negativeCONDITIONINGNo["{node_id}", 1]
How to connect to these outputs

To connect another node's input to an output from this node, use the connection reference format:

["node_id", output_index]

Where node_id is the ID of this ConditioningSetMaskAndCombine node in your workflow, and output_index is the index from the table above.

Example

If this node has ID "5" in your workflow:

  • combined_positive (CONDITIONING): ["5", 0]
  • combined_negative (CONDITIONING): ["5", 1]
Was this page helpful?