save_usd_stage
Persist a USD stage's root layer to disk, optionally forcing a re-write when the layer is clean and needs updating.
Instructions
Save a USD stage's root layer to disk. Wraps UE::FSdfLayer::Save(force) on the resolved stage's root layer. When force is false (default) and the root layer is clean, Save is a no-op and returns false — this is the USD-spec behavior and is reported honestly via 'saved:false' rather than as an error. Use force=true to re-write a clean layer (rare — typically only when a downstream tool requires a specific mtime).
Returns: { stage_name: string, resolution: string, saved: bool, dirty: bool, force: bool, real_path: string, errors: [string]? }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Force-re-save even when the layer is clean (default false). | |
| stage_name | Yes | Name the stage was registered under, OR an absolute file path to auto-open. |