> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# PixVerse Template - ComfyUI ネイティブノードドキュメント

> PixVerse 動画生成向けに事前設定されたテンプレートを提供する補助ノード

<img src="https://mintcdn.com/dripart/5003JSxULDwNImme/images/built-in-nodes/api_nodes/pixverse/pixverse-template.jpg?fit=max&auto=format&n=5003JSxULDwNImme&q=85&s=9995576d223575123de26cc31872a7f1" alt="ComfyUI ネイティブ PixVerse Template ノード" width="1731" height="694" data-path="images/built-in-nodes/api_nodes/pixverse/pixverse-template.jpg" />

PixVerse Template ノードは、あらかじめ定義された動画生成テンプレートから選択することで、PixVerse 動画生成ノードの出力スタイルおよびエフェクトを制御できます。\
この補助ノードは PixVerse の動画生成ノードと接続可能であり、ユーザーが複雑なパラメーターの組み合わせを手動で調整することなく、素早く事前設定済みの動画スタイルを適用できるようになります。

## パラメーター

### 必須パラメーター

| パラメーター   | 型  | 説明                                |
| -------- | -- | --------------------------------- |
| template | 選択 | 利用可能な予め設定された動画テンプレート一覧からテンプレートを選択 |

### 出力

| 出力                 | 型                   | 説明                          |
| ------------------ | ------------------- | --------------------------- |
| pixverse\_template | PixverseIO.TEMPLATE | 選択されたテンプレートの ID を含む設定オブジェクト |

## ソースコード

\[ノードソースコード（2025-05-05 更新）]

```python theme={null}

class PixverseTemplateNode:
    """
    Select template for Pixverse Video generation.
    """

    RETURN_TYPES = (PixverseIO.TEMPLATE,)
    RETURN_NAMES = ("pixverse_template",)
    FUNCTION = "create_template"
    CATEGORY = "api node/video/Pixverse"

    @classmethod
    def INPUT_TYPES(s):
        return {
            "required": {
                "template": (list(pixverse_templates.keys()), ),
            }
        }

    def create_template(self, template: str):
        template_id = pixverse_templates.get(template, None)
        if template_id is None:
            raise Exception(f"Template '{template}' is not recognized.")
        # just return the integer
        return (template_id,)
```
