clear_usd_attribute
Remove authored USD attribute values from a prim on an open stage; clear all samples and the default, or only the sample at a given time. Edits in memory; save_usd_stage writes the change.
Instructions
Clear authored values of a USD attribute on a prim of an open stage: with time, only the sample at that time code; without it, the default value and every time sample. Edits the stage in memory; save_usd_stage writes it. Returns present and cleared, present false when the attribute is missing.
Returns: { prim_path: string, attr_name: string, cleared: bool, present: bool, time: number? }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time | No | Time code of the single sample to clear (ClearAtTime); omit it to clear the default value and all samples (Clear). | |
| attr_name | Yes | Name of the attribute to clear, e.g. "size". | |
| prim_path | Yes | Absolute SdfPath of an existing prim on that stage, e.g. "/World/Cube". | |
| stage_name | Yes | Name the stage was registered under by open_usd_stage (default the file basename) or create_usd_stage (default "Untitled"). |