Skip to content
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

Merged
merged 2 commits into from
Sep 30, 2024
Merged

Conversation

pierrebai-adsk
Copy link
Collaborator

  • 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.

@pierrebai-adsk pierrebai-adsk added the import-export Related to Import and/or Export label Sep 26, 2024
@pierrebai-adsk pierrebai-adsk self-assigned this 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 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.
@@ -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))
Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

samuelliu-adsk
samuelliu-adsk previously approved these changes Sep 27, 2024
@pierrebai-adsk pierrebai-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Sep 27, 2024
@pierrebai-adsk pierrebai-adsk removed the request for review from barbalt September 27, 2024 20:06
minor - typo
@seando-adsk
Copy link
Collaborator

I fixed a minor typo in the .md.

@seando-adsk seando-adsk merged commit 70f3744 into dev Sep 30, 2024
9 checks passed
@seando-adsk seando-adsk deleted the bailp/EMSUSD-949/axis-in-export branch September 30, 2024 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
import-export Related to Import and/or Export ready-for-merge Development process is finished, PR is ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants