Skip to content

Conversation

@pierrebai-adsk
Copy link
Collaborator

  • Add -upAxis (-upa) and -axisAndUnitMethod (-aum) flags to the base import command.
  • Document the new flags in the import command read-me file.
  • Add upAxis and axisAndUnitMethod tokens to the import job args tokens.
  • Add the rotateScale, addTransform and overwritePrefs tokens to the import job args token.
  • Add the upAxis and axisAndUnitMethod data to the UsdMayaJobImportArgs structure.
  • Handle parsing the new user args to build the UsdMayaJobImportArgs.
  • Expose the upAxis and axisAndUnitMethod data to Python.
  • Add the new UI related to upAxis and axisAndUnitMethod in the import UI.
  • Add documentation about how to add a new import or export option.

Implement import rotation

  • Add axis conversion helper to the UsdMaya_ReadJob class.
  • Determine the Maya up-axis and USD up-axis.
  • Do nothing if they match.
  • Do nothing if the user requested to leave things as-is.
  • Otherwise either change the Maya prefs or rotate the root imported objects.
  • When rotating objects, group them under a group and rotate the group.
  • The ungroup them if the user did not want to keep the group.
  • Report success or failure of axis conversion.

Cleanup import code by refactoring into smaller functions to avoid code duplication.

Add unit tests for all three methods.

@pierrebai-adsk pierrebai-adsk self-assigned this Sep 20, 2024
@pierrebai-adsk pierrebai-adsk force-pushed the bailp/EMSUSD-946/axis-in-import branch from 694d720 to 317393d Compare September 20, 2024 18:17
@pierrebai-adsk pierrebai-adsk force-pushed the bailp/EMSUSD-946/axis-in-import branch from 317393d to cf23679 Compare September 20, 2024 20:11
- Add -upAxis (-upa) and -axisAndUnitMethod (-aum) flags to the base import command.
- Document the new flags in the import command read-me file.
- Add upAxis and axisAndUnitMethod tokens to the import job args tokens.
- Add the rotateScale, addTransform and overwritePrefs tokens to the import job args token.
- Add the upAxis and axisAndUnitMethod data to the UsdMayaJobImportArgs structure.
- Handle parsing the new user args to build the UsdMayaJobImportArgs.
- Expose the upAxis and axisAndUnitMethod data to Python.
- Add the new UI related to upAxis and axisAndUnitMethod in the import UI.
- Add documentation about how to add a new import or export option.

Implement import rotation
- Add axis conversion helper to the UsdMaya_ReadJob class.
- Determine the Maya up-axis and USD up-axis.
- Do nothing if they match.
- Do nothing if the user requested to leave things as-is.
- Otherwise either change the Maya prefs or rotate the root imported objects.
- When rotating objects, group them under a group and rotate the group.
- The ungroup them if the user did not want to keep the group.
- Add original up axis attribute to the root nodes.
- Report success or failure of axis conversion.

Cleanup import code by refactoring into smaller functions to avoid code duplication.

Add unit tests for all three methods.
@pierrebai-adsk pierrebai-adsk force-pushed the bailp/EMSUSD-946/axis-in-import branch from cf23679 to 1153d34 Compare September 20, 2024 20:13
@pierrebai-adsk pierrebai-adsk deleted the bailp/EMSUSD-946/axis-in-import branch September 20, 2024 20:13
@pierrebai-adsk pierrebai-adsk restored the bailp/EMSUSD-946/axis-in-import branch September 20, 2024 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants