-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EMSUSD-949 up axis in USD export #3935
Conversation
pierrebai-adsk
commented
Sep 26, 2024
- Add "-upAxis" (-upa) option to the export command.
- Document it.
- Add upAxis to the export job arguments structure.
- Add upAxis and its possible values to the export tokens.
- Expose upAxis job arguments to Python.
- Add up axis UI to the export dialog.
- Add AutoUndoCommands class to execute and automatically undo a set of MEL commands.
- Use AutoUndoCommand to automatically change and restore the up-axis.
- Implement temporarily changing Maya up-axis. We rotate all root nodes 90 degrees before and after the export.
- We use undo so that the values are perfectly restored.
- Add unit test.
e196428
to
7993964
Compare
- Add "-upAxis" (-upa) option to the export command. - Document it. - Add upAxis to the export job arguments structure. - Add upAxis and its possible values to the export tokens. - Expose upAxis job args to Python. - Add up axis UI to the export dialog. - Add AutoUndoCommands class to execute and automatically undo a set of MEL commands. - Use AutoUndoCommand to automatically change and restore the up-axis. - Implement temporarily changing Maya up-axis. We rotate all root nodes 90 degrees before and after the export. - We use undo so that the values are perfectly restored. - Add unit test.
7993964
to
57b23cc
Compare
@@ -212,7 +212,7 @@ def fileOptionsTabPage(tabLayout): | |||
fileOptionsScroll = cmds.columnLayout('fileOptionsScroll') | |||
optionsText = mayaUsdOptions.convertOptionsDictToText(cacheToUsd.loadCacheCreationOptions()) | |||
optionsText = mayaUsdOptions.setAnimateOption(_mayaRefDagPath, optionsText) | |||
mel.eval('mayaUsdTranslatorExport("fileOptionsScroll", "post={exportOpts}", "{cacheOpts}", "")'.format(exportOpts=kTranslatorExportOptions, cacheOpts=optionsText)) | |||
mel.eval('mayaUsdTranslatorExport("fileOptionsScroll", "post={exportOpts};cacheToUSD", "{cacheOpts}", "")'.format(exportOpts=kTranslatorExportOptions, cacheOpts=optionsText)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Pierre. I wonder why is this change needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So that the export UI knows that it is being call for caching to USD and disable some UI element.
minor - typo
I fixed a minor typo in the .md. |