> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-recommend-assets-api.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# LatentCut - ComfyUI Built-in Node Documentation

> Complete documentation for the LatentCut node in ComfyUI. Learn its inputs, outputs, parameters and usage.

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/LatentCut/zh.md)

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

## 输入参数

| 参数名       | 数据类型   | 必填 | 取值范围                  | 描述                             |
| --------- | ------ | -- | --------------------- | ------------------------------ |
| `samples` | LATENT | 是  | -                     | 用于提取的输入潜在样本                    |
| `dim`     | COMBO  | 是  | "x"<br />"y"<br />"t" | 截取潜在样本所沿的维度                    |
| `index`   | INT    | 否  | -16384 到 16384        | 截取的起始位置（默认：0）。正值从起始处计数，负值从末尾计数 |
| `amount`  | INT    | 否  | 1 到 16384             | 沿指定维度提取的元素数量（默认：1）             |

## 输出结果

| 输出名称     | 数据类型   | 描述        |
| -------- | ------ | --------- |
| `output` | LATENT | 提取的潜在样本部分 |
