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

# 条件采样区域（ConditioningSetArea）

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

此节点旨在通过设置条件上下文中的特定区域来修改条件信息。它允许对条件元素进行精确的空间操作，从而基于指定的尺寸和强度实现有针对性的调整和增强。

## 参数

| 参数             | 类型                | 默认 / 范围             | 说明                                           |
| -------------- | ----------------- | ------------------- | -------------------------------------------- |
| `conditioning` | CONDITIONING · 条件 | —（连线输入）             | 修改后的条件数据，反映了指定的区域设置和调整结果。                    |
| `width`        | INT               | 64 \~ 16384，步长 8    | 像素。必须为 8 的倍数（SD1.5 512、SDXL 1024、Flux 1024）。 |
| `height`       | INT               | 64 \~ 16384，步长 8    | 像素。必须为 8 的倍数，非正方形建议保持总像素与原模型训练分辨率一致。         |
| `x`            | INT               | 0 \~ 16384，步长 8     | 待设置区域的水平起始点，用于定位条件上下文中的调整位置。                 |
| `y`            | INT               | 0 \~ 16384，步长 8     | 区域调整的垂直起始点，用于确定其在条件上下文中的位置。                  |
| `strength`     | FLOAT             | 0.0 \~ 10.0，步长 0.01 | 该节点作用的整体强度，1.0 为默认，0 相当于旁路。                  |

## 输出

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

## 怎么接

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

## 使用案例

属于「条件修饰」类节点，向下游提供条件，最终进采样器的 positive 或 negative。从 `conditioning`、`width`（64）、`height`（64） 开始填就能跑起来。典型接法：`CLIPTextEncode` → 本节点 → `KSampler.positive`。注意：宽高必须是 8 的倍数；SDXL 建议总像素约 1024²，Flux 建议 1MP 左右。

## 端口与连线示意

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

## 实战提示

- 宽高必须是 8 的倍数；SDXL 建议总像素约 1024²，Flux 建议 1MP 左右。

## 同类节点

[条件平均](/nodes/03/ConditioningAverage.md) · [条件合并](/nodes/03/ConditioningCombine.md) · [条件连接](/nodes/03/ConditioningConcat.md) · [条件遮罩](/nodes/03/ConditioningSetMask.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)
