export_mesh_library
Convert a 3D scene of MeshInstance3D nodes into a MeshLibrary .res file for GridMap tile palettes. Optionally export a subset by naming mesh items.
Instructions
Export a scene of MeshInstance3D nodes as a MeshLibrary .res file for use in GridMap. For grid-based 3D tile palettes only, not 2D scenes. Source scene must contain MeshInstance3D children. Pass meshItemNames for a subset, or omit for all. Saves to outputPath, overwriting silently. Returns a plain-text confirmation with the exported item count. Errors if the scene contains no valid meshes. Errors while a Godot runtime session is active on this project; stop_project (or detach_project) clears it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scenePath | Yes | Scene file path relative to the project | |
| outputPath | Yes | Output path for the MeshLibrary .res file (relative to project) | |
| projectPath | Yes | Path to the Godot project directory | |
| meshItemNames | No | Names of specific mesh items to export. Omit to export all. |