Edit already existing variant

   Views 1729   Replies 3   Subscribers 1
User Avatar
Member
13 posts
Joined: June 2017
Offline
Hey all,

I am interacting with USD via the Houdini /stage context.

I have an asset that already has a variant set “outfits” defined.

It has different variants (“outfit01”, “outfit02”, “outfit03”, etc).

The variant set is saved on the “/root” primitive.

So far the different variants add new primitives (new outfit geometry).

In a second step I want to now add new materials and assign those to the new outfit primitives, potentially change some existing material assignments on other primitives.

I want to of course add that change to the respective existing variant. I don’t want to create a new variant set or new variants. If the user changes the ‘outfit01’ the geometry should change and the shaders.

I can’t really get it to work in Houdini.

A simplification of the setup looks like this:



Not that I deliberately didn’t put the shading stuff in the variants on the top, as this will happen in another houdini file in our pipeline.

From what I can tell I seem to basically overwrite the variants I created above with my setup. But how else would I solve this?

Attachments:
4394ac7c6a0f658a54f94700553ed5d473ba5b55.png (51.5 KB)

User Avatar
Member
13 posts
Joined: June 2017
Offline
Here is the hip file:
Edited by paulgolter - Oct. 19, 2023 03:33:52

Attachments:
usd_variant_add_test.hipnc (146.6 KB)

User Avatar
Member
13 posts
Joined: June 2017
Offline
I was able to solve it, check this thread:

https://forum.aousd.org/t/edit-already-existing-variant/820/5 [forum.aousd.org]
Edited by paulgolter - Oct. 19, 2023 12:30:04
User Avatar
Staff
4537 posts
Joined: July 2005
Offline
Hey Paul, glad to see you figured it out. It's definitely one of the more complex things to get right. But your hip file demonstrates a pretty clear "pattern" to it that we should probably wrap up into an HDA (similar to how we have the Edit Prototypes LOP).
  • Quick Links