> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# 条件遮罩（ConditioningSetMask）

<div class="node-meta"><code>ConditioningSetMask</code><span>model/conditioning/transform</span><span>角色：条件修饰</span><span class="star">★ 常用节点</span></div>

此节点旨在通过将指定强度的遮罩应用于特定区域来修改生成模型的条件控制。它允许在条件控制中进行针对性调整，从而实现对生成过程更精确的控制。 ### 必需

## 参数

| 参数              | 类型                | 默认 / 范围             | 说明                          |
| --------------- | ----------------- | ------------------- | --------------------------- |
| `conditioning`  | CONDITIONING · 条件 | —（连线输入）             | 已应用遮罩和强度调整的修改后条件控制数据。       |
| `mask`          | MASK · 遮罩         | —（连线输入）             | 白色区域参与运算。                   |
| `strength`      | FLOAT             | 0.0 \~ 10.0，步长 0.01 | 该节点作用的整体强度，1.0 为默认，0 相当于旁路。 |
| `set_cond_area` | COMBO             | default、mask bounds | —                           |

## 输出

| 输出 | 类型           | 说明 |
| -- | ------------ | -- |
| 条件 | CONDITIONING | 条件 |

## 怎么接

- **上游**：CLIPTextEncode / 条件节点
- **下游**：KSampler.positive / negative
- **接线**：上游接 CLIPTextEncode 出来的条件，输出继续接 KSampler 的 `positive`/`negative`；多个条件修饰可以串联，后面的会覆盖或叠加前面的区域/强度设置。

## 使用案例

属于「条件修饰」类节点，向下游提供条件，最终进采样器的 positive 或 negative。从 `conditioning`、`mask`、`strength`（1.0） 开始填就能跑起来。典型接法：`CLIPTextEncode` → 本节点 → `KSampler.positive`。注意：遮罩白色为生效区、黑色为忽略区；边缘务必羽化 8-32px 避免硬边。

## 端口与连线示意

![ConditioningSetMask 端口与连线示意](/svg/ConditioningSetMask.svg)

## 实战提示

- 遮罩白色为生效区、黑色为忽略区；边缘务必羽化 8-32px 避免硬边。

## 同类节点

[条件平均](/nodes/03/ConditioningAverage.md) · [条件合并](/nodes/03/ConditioningCombine.md) · [条件连接](/nodes/03/ConditioningConcat.md) · [条件采样区域](/nodes/03/ConditioningSetArea.md) · [设置条件时间](/nodes/03/ConditioningSetTimestepRange.md) · [ConditioningMultiply](/nodes/03/ConditioningMultiply.md) · [条件采样区域（系数）](/nodes/03/ConditioningSetAreaPercentage.md) · [调节设置区域百分比视频](/nodes/03/ConditioningSetAreaPercentageVideo.md) · [条件采样区域强度](/nodes/03/ConditioningSetAreaStrength.md) · [条件零化](/nodes/03/ConditioningZeroOut.md)
