Write mute state of layers to USD output

   1960   3   1
User Avatar
Member
15 posts
Joined: Dec. 2019
Offline
Hi,

Is there a way to keep the mute state of a USD layer, when writing out a Stage to file?

Let's say you sublayer in two USD files (fileA.usd and fileB.usd).

In the graph, you mute fileB.usd using the Configure Stage lop node.

Then you write out this composed stage to a new file myStage.usd.

When loading in myStage.usd both the fileA.usd and fileB.usd are active and it doesn't look like the muting of fileB.usd has been preserved.
User Avatar
Staff
4438 posts
Joined: July 2005
Offline
Layer muting, population masks, and payload masks have no way to be expressed in the authored USD layers. If you flatten the USD stage to a single USD file these muting and masking decisions are essentially "baked in" to the resulting USD file, but obviously there are a lot of implications to flattening a stage that make it fairly unattractive for many workflows.
User Avatar
Member
15 posts
Joined: Dec. 2019
Offline
So there's no, none destructive/flattening way, to disable/mute a layer in the Solaris graph and have that propagate to the resulting USD file, that will be passed to HUSK?

I guess a workflow could be to save the state of each USD layer as metadata within the Stage and use a pre-render script within HUSK to mute layers based on that.
User Avatar
Member
129 posts
Joined: Oct. 2020
Offline
"Configure Stage" LOP can be used to mute layers and I think it will pass down to Husk.
https://www.youtube.com/channel/UC4NQi8wpYUbR9wLolfHrZVA [www.youtube.com]
  • Quick Links