set_usd_prim_active
Toggle a prim's active state on a registered USD stage to include or exclude it from composition without removal. Inactive prims stay addressable.
Instructions
Activate or deactivate an existing prim on a registered USD stage (active metadata on the current edit target). An inactive prim and its subtree leave composition but stay addressable, the reversible alternative to remove_usd_prim. Returns active and set; not saved to disk.
Returns: { active: bool, prim_path: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| active | No | true to activate, false to deactivate; omitted means true. | |
| prim_path | Yes | Absolute SdfPath of an existing prim, e.g. "/World/Cube". | |
| stage_name | No | Name the stage was registered under by create_usd_stage or open_usd_stage; a stage already in the USD cache also matches by the end of its root layer identifier. |