how to get copies of a hda showing up after merge?

   1672   1   1
User Avatar
Member
13 posts
Joined: 3月 2020
オフライン
Hi everyone,

I am trying figuring out how to get a couple copies of a hda merge together and have them all showing up after merging them all together.

Since they are exact copies of each other, all the primitive paths are the same, so after merge, only the last input on the merge will show up, and the rest just disappears.

Is there any work around?

Thanks in advance.
User Avatar
スタッフ
4559 posts
Joined: 7月 2005
オフライン
You could add a parameter to the HDA to control the root primitive. This will let you use a Merge and preserve the USD layer structure (a series of sublayers). Though since you explicitly don't want these layers overlapping I'm not sure you actually want a bunch of sublayers?

You could plug the same HDA into the multi-input of a reference LOP a bunch of times, and set a unique reference path for each connection (an advantage here is that the authored USD will preserve this referencing structure rather than having several duplicates of identical data, so the total file size and memory usage will be less).

If neither of the above are possible, the "Graft Stage" and "Graft Branches" LOPs provide the ability to re-home the data from one stage into a different location on another stage. But this does layer flattening on the inputs before copying the data, which might change the input layer structure. I don't know if you would care about that or not... This solution also leaves you with a single USD layer, rather than a bunch of sublayers. Again, maybe a good thing or maybe a bad thing depending on your overall goal for the final USD structure.
  • Quick Links