exportFile
exportFile
Exports the current scene to a 3D file format. Triggers automatic download.
Signature
exportFile(format: Export3DFormats, options?: ExportOptions): Promise<void>Parameters
Parameter
Type
Required
Description
format
Export3DFormats
Yes
Output format
options
ExportOptions
No
Export options
type Export3DFormats = "OBJ" | "GLTF" | "GLB" | "DAE" | "USDZ" | "FBX" | "STL";
type ExportOptions = {
fbx?: "ASCII" | "Binary"; // Default: "ASCII"
applyParentMatrix?: boolean;
exportOnlyUsedUVs?: boolean;
};Returns
Promise<void> — File is automatically downloaded.
Usage
Notes
Triggers automatic file download in browser
Returns
void, not a BlobFBX defaults to ASCII format
Last updated