document_exportGltf
Export the active Moho Pro document to glTF 2.0 or GLB headlessly with frame baking, texture scaling, mesh resolution, and format options. Run a rig audit first to flag animation export issues.
Instructions
Headless Moho Pro 14.4 glTF 2.0 / GLB export wrapping Tool/ss_gltf_export.lua (bypasses SS_glTFExportDialog:DoModal safely). Run rig_auditGltf first to check for animated vectors without Warp Layers or non-in-place Actions.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "document_exportGltf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fbf | No | Bake every frame into glTF keyframes (preserves dynamics/Smart Bones; default: false) | |
| scale | No | Texture scaling factor 0.1..10.0 (default: 1.0 = 100%) | |
| format | No | Output container format (default: 'glb') | |
| comment | No | ||
| fbfStep | No | Keyframe interval step when fbf=true (1..999, default: 1) | |
| zOffset | No | Z-offset factor between stacked layers 0.1..100 (default: 1) | |
| fileName | No | Output base filename without extension (defaults to document name) | |
| reRender | No | Re-render layer textures mode (default: 'none') | |
| copyright | No | ||
| outputDir | No | Destination folder (required if document is unsaved; auto-created if missing) | |
| flipZOrder | No | Invert layer Z stacking order (default: false) | |
| gridDensity | No | Mesh polygon resolution 1..100 (default: 20) |