Any good examples of how to export blendshapes? #1148
-
I noticed in the release notes for version 0.7.0, Blendshape export is supported. are there any examples of how to export animation with Blendshapes with usd? So far, I have been unsuccessful. Joint animation translates over, but Blendshapes are gone. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
The tests have an example. But it should work by using a command like: The last 3 flags are important. |
Beta Was this translation helpful? Give feedback.
-
Please check if you got warnings/API errors in the Script Editor/stderr (i.e. launch Maya from a terminal and check the output, or if you're on Windows, check the Output Window). It might give a clue as to what might have gone wrong. If you have warnings, try using the |
Beta Was this translation helpful? Give feedback.
The tests have an example.
https://github.com/Autodesk/maya-usd/tree/dev/test/lib/usd/translators/UsdExportBlendShapesTest
https://github.com/Autodesk/maya-usd/blob/dev/test/lib/usd/translators/testUsdExportBlendshapes.py
But it should work by using a command like:
cmds.mayaUSDExport(f=temp_file, v=True, sl=True, ebs=True, skl="auto", skn="auto")
The last 3 flags are important.
Note that this would only ensure that the blendshapes are in the resulting usd file. It doesn't mean Maya can import the blendshapes back in, nor that other apps/engines support Blendshape import at this moment.