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-947 units conversion for USD import #3941

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

pierrebai-adsk
Copy link
Collaborator

  • Add -unit (-unt) option to the import command.
  • Document it.
  • Add unit option to the job import argument structure.
  • Parse the unit option.
  • Expose it to Python.
  • Add check-box UI to the import UI.
  • Add private structure to the import read job class to hold all conversion info.
  • Remove old warning about unit conversion not being implemented.
  • Refactor the code for up-axis conversion to also handle the units conversion.
  • Change prefs for units if requested and needed.
  • Add unit tests.

@pierrebai-adsk pierrebai-adsk added the import-export Related to Import and/or Export label Oct 2, 2024
@pierrebai-adsk pierrebai-adsk self-assigned this Oct 2, 2024
@pierrebai-adsk pierrebai-adsk force-pushed the bailp/EMSUSD-947/import-usd-units branch from d5db7ef to 6321743 Compare October 2, 2024 13:32
@pierrebai-adsk pierrebai-adsk force-pushed the bailp/EMSUSD-947/import-usd-units branch from 6321743 to 887c600 Compare October 2, 2024 13:35
- Add -unit (-unt) option to the import command.
- Document it.
- Add unit option to the job import argument structure.
- Parse the unit option.
- Expose it to Python.
- Add check-box UI to the import UI.
- Add private structure to the import read job class to hold all conversion info.
- Remove old warning about unit conversion not being implemented.
- Refactor the code for up-axis conversion to also handle the units conversion.
- Change prefs for units if requested and needed.
- Add unit tests.
@pierrebai-adsk pierrebai-adsk force-pushed the bailp/EMSUSD-947/import-usd-units branch from 887c600 to 4174814 Compare October 2, 2024 13:38
@pierrebai-adsk pierrebai-adsk self-assigned this Oct 2, 2024
@@ -152,6 +152,11 @@ double ConvertMDistanceUnitToUsdGeomLinearUnit(const MDistance::Unit mdistanceUn
MAYAUSD_CORE_PUBLIC
MDistance::Unit ConvertUsdGeomLinearUnitToMDistanceUnit(const double linearUnit);

/// Convert the given \p mdistanceYnit into its text representation suitable
Copy link
Collaborator

Choose a reason for hiding this comment

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

small typo

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Will be fixed in next PR about units and up-axis in USD stages.

Copy link
Collaborator

@barbalt barbalt left a comment

Choose a reason for hiding this comment

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

Looks good. My only concern is with skinned data: Skel and morphers. Specially when importing then re-exporting it (concerned about bone scaling)

@pierrebai-adsk pierrebai-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Oct 2, 2024
@pierrebai-adsk
Copy link
Collaborator Author

Looks good. My only concern is with skinned data: Skel and morphers. Specially when importing then re-exporting it (concerned about bone scaling)

Anything specific? You can log issues in Jira if you think something cold be broken.

@barbalt
Copy link
Collaborator

barbalt commented Oct 2, 2024

Looks good. My only concern is with skinned data: Skel and morphers. Specially when importing then re-exporting it (concerned about bone scaling)

Anything specific? You can log issues in Jira if you think something cold be broken.

I have some bad experiences when implementing the import/export when converting different units. Scaling was the biggest culprit of bad things happening.. Animations wouldn't translate properly due to mesh have different matrices and so on.. Hence why I mentioned scaling in particular..

I guess we'll see with tests..

@seando-adsk seando-adsk merged commit 0668bf5 into dev Oct 3, 2024
11 checks passed
@seando-adsk seando-adsk deleted the bailp/EMSUSD-947/import-usd-units branch October 3, 2024 17:31
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