set_usd_prim_specifier
Change a USD prim's specifier to Def, Over, or Class at the current edit target, refusing unknown values before write.
Instructions
Change the specifier ("Def", "Over" or "Class") of an existing prim on a registered USD stage, at the current edit target. An unknown specifier is refused before anything is authored. specifier reports the one written, only when the write succeeded (set); a failed write fails the call. Not saved to disk.
Returns: { set: bool, specifier?: string, requested?: object }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prim_path | Yes | Absolute SdfPath of an existing prim, e.g. "/World/Cube". | |
| specifier | Yes | "Def", "Over" or "Class", case-insensitive; anything else is refused. | |
| 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. |