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

# 潜在空间切割（LatentCut）

<div class="node-meta"><code>LatentCut</code><span>model/latent/advanced</span><span>角色：潜空间处理</span></div>

LatentCut 节点沿选定的维度从潜在样本中提取特定部分。它通过指定维度（"x"、"y" 或 "t"）、起始位置以及要提取的数量，从潜在表示中切出一部分。该节点支持正向和负向索引，并会自动调整提取数量，使其保持在可用范围内。

## 参数

| 参数        | 类型           | 默认 / 范围         | 说明                             |
| --------- | ------------ | --------------- | ------------------------------ |
| `samples` | LATENT · 潜空间 | —（连线输入）         | LATENT。采样器的输入/输出，需 VAE 解码才能看图。 |
| `dim`     | COMBO        | x、y、t           | —                              |
| `index`   | INT          | -16384 \~ 16384 | 从 0 开始的位置编号。                   |
| `amount`  | INT          | 1 \~ 16384      | 滤镜作用幅度或形态学迭代次数。                |

## 输出

| 输出     | 类型     | 说明  |
| ------ | ------ | --- |
| LATENT | LATENT | 潜空间 |

## 怎么接

- **上游**：EmptyLatentImage / VAEEncode / KSampler
- **下游**：VAEDecode / 下一段采样
- **接线**：接在 EmptyLatentImage / VAEEncode / 上一次采样之后，输出接着进 KSampler 或 VAEDecode；潜空间操作比像素空间快得多，放大和拼接优先在这一层做。

## 使用案例

属于「潜空间处理」类节点，向下游提供潜空间数据，通常进采样器或解码器。从 `samples`、`dim`（x、y、t）、`index`（0） 开始填就能跑起来。典型接法：`EmptyLatentImage` → 本节点 → `VAEDecode`。输出类型是 LATENT，只能接同类型的输入端口，颜色对不上就是接错了。

## 端口与连线示意

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

## 同类节点

[Latent相加](/nodes/04/LatentAdd.md) · [Latent插值](/nodes/04/LatentInterpolate.md) · [Latent相乘](/nodes/04/LatentMultiply.md) · [Latent相减](/nodes/04/LatentSubtract.md) · [Latent批处理随机种行为](/nodes/04/LatentBatchSeedBehavior.md) · [潜在空间拼接](/nodes/04/LatentConcat.md) · [Latent切割](/nodes/04/LatentCutToBatch.md)
