Force Variant Selection On Input Change

   300   0   0
User Avatar
Member
11 posts
Joined: 4月 2020
Online
Hi,

I'm tying to create an hda that will auto-populate variants from a Usd object that includes variants. I've figured out how to make my HDA work as intended with the exception that a new node doesn't force the default variant selection on input connection. I have to manually select every variant to get them to work.



As you can see from the pic above the variant selector says purple for Color and cylinder for Shape but the display shows a red circle. If I manually select purple and cylinder it acts correctly. I'd really like it if the node and the variant options are the same regardless of whether the user selects each specific variant.

Any thoughts on what I'm doing wrong or is there a better way to approach this problem?

I've attached the HIP file below if you want to have a look.

Attachments:
varant_pic.png (389.3 KB)
variant_selector.zip (416.2 KB)

  • Quick Links