You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Using PXR_AR_DEFAULT_SEARCH_PATH or SetDefaultSearchPath doesn't resolve the path in maya-2024, but it does work in maya-2022. It also works in maya-2025 but only if PXR_AR_DEFAULT_SEARCH_PATH is set before launching maya. So while it does work in maya-2025, we can no longer configure default paths in our userSetup.py which is a shame. I presume this secondary issue is related to PixarAnimationStudios/OpenUSD#2925, possibly resolved in usd-24.05
Steps to reproduce
set PXR_AR_DEFAULT_SEARCH_PATH = "C:/usd/a"
Open maya-2024 (tested as not working with 0.27-> 0.30)
importosfrompxrimportAr# verify search path is setprint(os.environ["PXR_AR_DEFAULT_SEARCH_PATH"]) # "C:/usd/a"# verify usd file existsprint(os.path.exists("C:/usd/a/data/ball.usd")) # True# try resolve the usd file - fails in 2024print(Ar.GetResolver().Resolve("data/ball.usd")) # None
Expected behavior
I would expect maya-2024 to resolve paths the same way as maya-2022 and maya-2025. Specifically it should resolve to C:/usd/a/data/ball.usd in the example above
The text was updated successfully, but these errors were encountered:
I just tested this scenario of using PXR_AR_DEFAULT_SEARCH_PATH on my system using Maya USD 0.30 in Maya 2024.2, 2025.3 and current internal beta builds and it worked as expected. Maybe there is some extra piece to the puzzle regarding your setup in Maya 2024?
Thanks for checking Shawn. Apologies this was indeed something in my setup - it was caused by having nvidia's omniverse maya module in the environment. Preventing omniverse from loading restored the maya-usd resolver behviour. Thanks again
Describe the bug
Using
PXR_AR_DEFAULT_SEARCH_PATH
orSetDefaultSearchPath
doesn't resolve the path in maya-2024, but it does work in maya-2022. It also works in maya-2025 but only ifPXR_AR_DEFAULT_SEARCH_PATH
is set before launching maya. So while it does work in maya-2025, we can no longer configure default paths in our userSetup.py which is a shame. I presume this secondary issue is related to PixarAnimationStudios/OpenUSD#2925, possibly resolved in usd-24.05Steps to reproduce
PXR_AR_DEFAULT_SEARCH_PATH
= "C:/usd/a"Expected behavior
I would expect maya-2024 to resolve paths the same way as maya-2022 and maya-2025. Specifically it should resolve to
C:/usd/a/data/ball.usd
in the example aboveThe text was updated successfully, but these errors were encountered: