ynput / ayon-maya

Maya addon for AYON
Apache License 2.0
6 stars 9 forks source link

Optimize output data from Maya USD animation export #115

Open BigRoy opened 2 months ago

BigRoy commented 2 months ago

Changelog Description

Reduce amount of data extracted to USD from Maya USD animation.

Additional info

Draft.

Testing notes:

  1. Publish maya USD for animation product - it should work.
  2. Check the resulting published data in the USD file, confirm it does not contain materials, UVs, etc.
moonyuet commented 1 month ago

I tried with the latest version of maya 2025.3 with mayausd 0.30.0 The animation is published successfully. image

@BigRoy Do we need to implement some backward compatibility for just in case users are using maya-usd 0.28.0 or lower?

BigRoy commented 1 month ago

I tried with the latest version of maya 2025.3 with mayausd 0.30.0 The animation is published successfully. image

@BigRoy Do we need to implement some backward compatibility for just in case users are using maya-usd 0.28.0 or lower?

Yes, that's the idea. Do keep in mind this PR is still in draft. There are other things to solve too, like:

moonyuet commented 1 month ago

I tried with the latest version of maya 2025.3 with mayausd 0.30.0 The animation is published successfully. image @BigRoy Do we need to implement some backward compatibility for just in case users are using maya-usd 0.28.0 or lower?

Yes, that's the idea. Do keep in mind this PR is still in draft. There are other things to solve too, like:

  • This may need to be optional or configurable in settings. (especially for backwards compatibility with existing projects)

  • Shouldn't crash on older USD addons, but if the setting is used on the instance what should it do then? Log a warning that the output might not consider that and hence may be different than what the user expects from the toggles?

This should be configurable in settings, but we need to inform users about the missing functionalities if they are using elder versions of maya usd.