maya-usd interop status - How do you export and import Maya -> USD -> Maya without breaking shading? #2353
Unanswered
ColinKennedy
asked this question in
General
Replies: 1 comment
-
There are a few issues you need to be aware of when dealing with materials.
Here something that works for me:
This should result in a red Lambert on the imported cube. We also support a few utility nodes like file textures, and how they are placed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Our pipeline needs to be able to reimport USD data geometry and shading as Maya nodes and with materials applied so that they can be fed into rigs and animated. However even with a "cube + single material" case, I can't seem to get import / export to work.
I've tried a variety of set-ups and will summarize the results. The permutations are
Important: This set of tests were conducted using the latest Maya and maya-usd. Maya 2023 and maya-usd 0.17.0
I also tried selecting just the cube's shape, shape + transform, also tried setting the Usd Export "Plug-In Configuration" to "Arnold" or "None". No set of options or selection that I could find that exports the Lambert. Could be my user error but I'm not sure what I'm doing wrong.
In this case, Arnold-Export did export geometry and shading but in my instances, neither a regular USD Import doesn't bring the shader back in
Conclusion (So Far)
The best result I could get was to not use any menus and just use
cmds.mayaUsdExport
, directly.cmds.mayaUSDExport(["|pCube1"], file=path, parentScope="/root")
I assume mayaUSDExport is what File > Import | Type: USD Export uses so then that means some export options should be doable but I just don't know which it is.
However, this export process has its own problems.
I'm sorry if I'm missing something really simple. I don't know where to look. Could someone help show me how to get (geometry + basic shading, Arnold or non-Arnold shading) USD export -> import interop is working?
Beta Was this translation helpful? Give feedback.
All reactions