remove_usd_prim_schema
Remove an applied API schema, such as MaterialBindingAPI, from an existing USD prim on a registered stage. It reports whether removal occurred and returns false when the prim lacks the schema.
Instructions
Remove an applied API schema (e.g. "MaterialBindingAPI") from an existing prim of a registered USD stage, on the current edit target. A schema the prim does not have returns removed=false and was_applied=false instead of an error. Not saved to disk; inverse of apply_usd_prim_schema.
Returns: { removed: bool, schema_name: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| schema_name | Yes | Schema identifier as listed in applied_schemas by get_usd_prim_info, e.g. "MaterialBindingAPI". |