set_usd_attribute_value
Set a USD attribute value on a prim, creating the attribute if missing, with optional time codes for stage edits.
Instructions
Author a value on a USD attribute (creating it if missing)
Returns: { prim_path: string, attr_name: string, set: bool, type_name: string, type: string, created: bool, time: number? }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time | No | Optional time code (default: unset = static default) | |
| value | No | {type: "float"|"int"|"string"|"token"|"asset"|..., value: <scalar>}; explicit type preferred; implicit by JSON runtime type otherwise. | |
| attr_name | Yes | Attribute name to set | |
| prim_path | Yes | Target prim path | |
| type_name | No | USD type name; REQUIRED when the attribute does not exist yet (used to CreateAttribute). When the attribute already exists this is ignored. | |
| stage_name | Yes | Stage cache key |