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

# SaveGLB - ComfyUI Built-in Node Documentation

> The SaveGLB node saves 3D mesh data or 3D file inputs to the output directory.

The SaveGLB node saves 3D mesh data or 3D file inputs to the output directory. It accepts mesh data and common 3D file formats (GLB, GLTF, OBJ, FBX, STL, USDZ, PLY, SPLAT, SPZ, KSPLAT) and exports them with the specified filename prefix. Mesh inputs are written as GLB files, one per batch item, while 3D file inputs are saved in their original format.

## Inputs

| Parameter         | Description                                                                                                                                                                         | Data Type      | Required | Range                                                                                                                                                                                |
| ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `mesh`            | Mesh or 3D file to save                                                                                                                                                             | MESH or FILE3D | Yes      | Mesh data<br />GLB<br />GLTF<br />OBJ<br />FBX<br />STL<br />USDZ<br />PLY<br />SPLAT<br />SPZ<br />KSPLAT<br />Any splat format<br />Any point cloud format<br />Any 3D file format |
| `filename_prefix` | The prefix for the output filename (default: "3d/ComfyUI"). The prefix can include a subfolder path, so files are saved under the "3d" subfolder of the output directory by default | STRING         | No       | -                                                                                                                                                                                    |

Note: When the `mesh` input is a 3D file, the node saves it using its original format extension (GLB is used if the file has no format). When it is mesh data, each item in the batch is saved as a separate `.glb` file; empty items (with no vertices or faces) are skipped with a warning. Output filenames follow the pattern `{filename_prefix}_{counter:05}_.{ext}` with an incrementing counter. Workflow metadata (prompt and extra PNG info) is embedded in the saved files when metadata is enabled.

## Outputs

| Output Name | Description                                                                                      | Data Type |
| ----------- | ------------------------------------------------------------------------------------------------ | --------- |
| `ui`        | Displays the saved 3D files in the user interface with filename, subfolder, and type information | UI        |

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/SaveGLB/en.md)

***

**Source fingerprint (SHA-256):** `366b56c4fd6e3c2f7783222990792a982857b3419a2becfa27ddfa37853bb22c`
