Scene Checkpoint
scene_checkpointSave a self-contained .ma snapshot of in-memory Maya state to a checkpoints directory for rollback safety; overwrite protection and untitled-scene naming included.
Instructions
Save a real scene snapshot (exportAll of in-memory state).
Writes a self-contained .ma into a checkpoints/ directory next to the scene file. On untitled (never-saved) scenes an explicit name is required and produces an ad-hoc snapshot under the Maya workspace — returned with original_file_status="no_original_file" and scene_rebound_to=null. Same-name checkpoints are rejected unless overwrite=True (the old file is preserved via rename).
Honest bounds: the snapshot contains no undo history — after scene_rollback, call scene_snapshot to rebuild context. References are flattened (self-contained, no write-back). Assumes one scene file per session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Checkpoint name (^[A-Za-z0-9_-]+$). Required on untitled scenes. | |
| overwrite | No | Replace a same-name checkpoint, preserving the old file. | |
| session_key | No | Maya session key. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |