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 #3930

Closed
wants to merge 1 commit into from

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.
  • Implement temporarily changing Maya up-axis. We rotate all root nodes 90 degrees before and after the export.
  • Add unit test.

@pierrebai-adsk pierrebai-adsk added the import-export Related to Import and/or Export label Sep 25, 2024
@pierrebai-adsk pierrebai-adsk self-assigned this Sep 25, 2024
@@ -112,6 +112,112 @@ static TfToken _GetFallbackExtension(const TfToken& compatibilityMode)
return UsdMayaTranslatorTokens->UsdFileExtensionDefault;
}

class AutoUpAxisChanger
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is how change of axis during export is done: we temporarily rotate the Maya scene so that we can rely on the existing correct behavior already written in Maya to handle all possible nodes properly.

- 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 exeucte and automatically undo a set of
  MEL commands.
- Use AutoUndoCommand to automatically change and reatore 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 deleted the bailp/EMSUSD-949/axis-in-export branch September 26, 2024 16:13
@pierrebai-adsk pierrebai-adsk restored the bailp/EMSUSD-949/axis-in-export branch September 26, 2024 16:13
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant