set_usd_variant_selection
Selects and activates a specified variant in a USD variant set for a prim, guarding against missing sets to prevent invalid references.
Instructions
Set the active variant for a variant set; HasVariantSet guard prevents the FUsdVariantSet from going invalid when the set is missing
Returns: { prim_path: string, variant_set_name: string, variant_name: string, set: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prim_path | Yes | SdfPath of the prim that authors the variant set | |
| stage_name | No | Stage cache key | |
| variant_name | Yes | Variant to activate (must already be present — use add_usd_variant first) | |
| variant_set_name | Yes | Variant set to select a variant from |