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

Load to Maya USD Proxy Shape using AYON Entity URI for AYON USD Resolver #93

Merged
merged 6 commits into from
Sep 16, 2024

Conversation

BigRoy
Copy link
Contributor

@BigRoy BigRoy commented Sep 3, 2024

Changelog Description

Load to Maya USD Proxy Shape using AYON Entity URI for AYON USD Resolver

Additional info

Matches this AYON Houdini PR: ynput/ayon-houdini#26 and hence also highlights what we may want to de-duplicate and re-use code for.

image

image

TODO

  • Allow to toggle in settings whether path should be AYON Entity URI or regular resolved path

Testing notes:

  1. Upload new addon
  2. Enable ayon+settings://maya/load/MayaUsdLoader/use_ayon_entity_uri
  3. Load USD to Maya USD Proxy

image

  1. It should use the AYON Entity URI as filepath.
  2. It should work with the AYON USD resolver.

@BigRoy BigRoy added the type: enhancement Improvement of existing functionality or minor addition label Sep 3, 2024
@BigRoy BigRoy requested review from antirotor and Lypsolon September 3, 2024 23:47
@BigRoy BigRoy self-assigned this Sep 3, 2024
@BigRoy BigRoy marked this pull request as ready for review September 4, 2024 07:33
@Lypsolon
Copy link

Lypsolon commented Sep 6, 2024

Hello @BigRoy i see that this maya addon needs a core version of 0.4.1+ and im not sure what branch i should use for to build the right core addon for that ?

@BigRoy
Copy link
Contributor Author

BigRoy commented Sep 6, 2024

i see that this maya addon needs a core version of 0.4.1+ and im not sure what branch i should use for to build the right core addon for that ?

This should work fine with any recent version of ayon-core. So develop branch should be fine, or even the 0.4.4 release if you'd like.

Copy link

@Lypsolon Lypsolon left a comment

Choose a reason for hiding this comment

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

My Domain Knowledge of Maya is 0.
but i see the expected Object in Maya loaded with a usd.

i have no idea if its using the uri or not tho.
i believe its an normal path tho.
image

[Edit] i activated the settings for entity uri.
image

[Edit2] now im pritty sure its not doing it.
Resolver Output: Resolver::_Resolve( '/home/ynput/Documents/Ayon_Server_Mount/Usd_Testing/Hou_Ues_Exp/Test_Assets/assetA/publish/usd/usdMain/v001/UT_assetA_usdMain_v001.usd' )

@BigRoy
Copy link
Contributor Author

BigRoy commented Sep 9, 2024

  • Upload new addon

  • Enable ayon+settings://maya/load/MayaUsdLoader/use_ayon_entity_uri

  • Load USD to Maya USD Proxy

  • It should use the AYON Entity URI as filepath.

  • It should work with the AYON USD resolver.

  1. @Lypsolon did you have the setting enabled?
  2. I have a feeling you're using "Reference USD" or whatever (which is a maya reference, which I'm not sure would even support the resolver - I'd need to try that! still) but this is about the "Load USD to Maya Proxy" loader.

@BigRoy BigRoy requested a review from Lypsolon September 9, 2024 08:49
Copy link

@Lypsolon Lypsolon left a comment

Choose a reason for hiding this comment

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

Tested on almalinux 9 Maya20205

it was possible to load an asset build by using the contribution workflow via Houdini.

materials where assigned correctly, asset loaded, uri was with the correct version and not with latest.

@BigRoy BigRoy merged commit 30dd1ec into ynput:develop Sep 16, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Improvement of existing functionality or minor addition
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants