Scene Export
scene_exportExport a Maya scene or selected objects to fbx, obj, or usd files on the host, creating missing directories and optionally overwriting an existing file.
Instructions
Export the Maya scene (or named objects) to a local file.
Writes through cmds.file with prompt=False forced (a modal dialog would hang the command channel). Formats: fbx, obj, usd (Alembic is not supported - its AbcExport API is not a cmds.file surface). The selection set is restored after every objects= export and the scene's modified flag is untouched.
destructive_hint is False but note: overwrite=True permanently replaces the target file - that path is not recoverable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Target file path on the Maya host. Normalized and auto-parented (missing directories are created). An existing file is rejected unless overwrite=True. | |
| format | No | "fbx", "obj", or "usd". Optional when the path carries a recognizable extension; a missing extension is appended for an explicit format, and a conflicting extension+format pair is an error, never a guess. | |
| objects | No | Node names to export. None (default) exports the whole scene via exportAll; a list is pre-validated (any missing name aborts - no partial export) and drives exportSelected. | |
| overwrite | No | Replace an existing target file (default False). | |
| session_key | No | Maya session key. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |