# Save Splat

This node saves a Gaussian splat 3D file to the output directory. It handles the file saving process and provides preview data for the 3D viewport.

## Inputs

| Parameter | Description | Data Type | Required | Range |
|-----------|-------------|-----------|----------|-------|
| `model_3d` | A gaussian splat 3D file. | FILE3D | Yes | SplatAny<br>PLY<br>SPLAT<br>SPZ<br>KSPLAT |
| `filename_prefix` | The prefix for the saved filename (default: "3d/ComfyUI"). | STRING | Yes | Any valid filename prefix |
| `viewport_state` | The current viewport state containing camera and model information. | LOAD3D | Yes | - |
| `model_3d_info` | Additional model 3D information for the viewport. | LOAD3DMODELINFO | No | - |
| `camera_info` | Camera information for the viewport preview. | LOAD3DCAMERA | No | - |
| `width` | The width of the preview (default: 1024). | INT | Yes | 1 to 4096 |
| `height` | The height of the preview (default: 1024). | INT | Yes | 1 to 4096 |

Note: If `camera_info` or `model_3d_info` are not provided, the node uses the corresponding values from `viewport_state` when available.

## Outputs

| Output Name | Description | Data Type |
|-------------|-------------|-----------|
| `model_3d` | The Gaussian splat 3D file that was saved to the output directory. | FILE3D |
| `model_3d_info` | Model 3D information for the viewport. | LOAD3DMODELINFO |
| `camera_info` | Camera information for the viewport preview. | LOAD3DCAMERA |
| `width` | The width of the preview. | INT |
| `height` | The height of the preview. | INT |

> 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/SaveGaussianSplat/en.md)

---
**Source fingerprint (SHA-256):** `f2d6b98d2ce1fe11df8ba440b7f46a21e2308966c15daa5ca0bdca7dab1726cc`
