Component Builder for Maya #3340
Replies: 1 comment
-
Thanks for your scripts. We've been ramping up discussions internally about USD assets and building components. Building up a workflow for building up USD component assets is definitely on our radar. Moving forward, we'd love to hear general feedback from the community on workflows related to transporting data from DCCs into structured assets. There are so many ways to go about this. One method is as you describe with dialogs to confirm actions. Another workflow we've played with is tagging DCC objects and automatically wrapping those into structures. There are so many ways you could approach this, so getting a consensus on a good general-purpose workflow is what we'd like to find. |
Beta Was this translation helpful? Give feedback.
-
Wanted to share a script I've been hammering away on inspired by the Component Builder in Houdini.
Export geo to USD with support for:
I followed the USD WorkingGroup Asset Structure Guidelines , making the geometry scope name "geo" mandatory, and leaving the naming for the proxy and render scopes open to the user.
Here's a screenshot of the interface for the file browser with the Outliner on the left:
and here's the resulting asset file:
If you want to give it a spin you'll need these two files:
df_USD_geoExport_UI.mel
df_USD_geoExport.py
Copy these into your Maya scripts folder, and call with the following in the Script Editor (Mel):
Usage: Select the root prim to export. Confirm proxy and render groups in file dialog. Enter path and filename for root asset. Export. Will create a root asset file and corresponding geom and payload files.
Would love to get feedback on this from folks, as I'm sure that there's plenty of room for improvement. I'm also hoping it can maybe spark a conversation of how this kind of functionality might make its way eventually into the Maya UI in some form.
Beta Was this translation helpful? Give feedback.
All reactions