set_variant_selection
Switch a prim's variant selection and refresh the viewport so the correct geometry renders after the change.
Instructions
Switch variant selection on a prim with proper viewport refresh.
Includes Hydra rprim refresh workaround (activation toggle + frame pumping) to ensure the viewport renders the correct geometry after switching.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prim_path | Yes | The prim with the variant set | |
| variant_set | Yes | The variant set's name, e.g. "model" | |
| variant_name | Yes | The variant to select, e.g. "shell" |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |