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
There is no way to update default resolver search paths without restarting Maya.
Steps to Reproduce
from pxr import Ar
Ar.DefaultResolver.SetDefaultSearchPath(['//server/projects/test_1'])
print(Ar.GetResolver().Resolve('assets/props/asset/asset.usd').GetPathString())
Hi @bazhutkin ! The way we intend for this to happen is that you don't change the paths configured on the Resolver itself (which is a global thing used by all open Stages (and other entities)), but rather to "refresh" the ArResolverContext with which the stage was opened (the context gets "attached" to the Stage. This would require some retooling on Maya's part to facilitate the workflow, but it should also be empowering, especially for "multi shot" workflows and other cases.
Unfortunately, we discovered that we have not yet implemented a RefreshContext() method for ArDefaultResolver(), which will be needed for this pattern to work. We will prioritize getting that done for the 24.05 release.
Description of Issue
There is no way to update default resolver search paths without restarting Maya.
Steps to Reproduce
\\server\projects\test_1\assets\props\asset\asset.usd
\\server\projects\test_1\assets\props\asset\asset.usd
If this is not a bug, then tell me how I can update the resolver search paths without rebooting Maya?
System Information (OS, Hardware)
Windows 11, macOS 14
Package Versions
MayaUSD 0.26.0 (OpenUSD 22.11) for Maya 2024
The text was updated successfully, but these errors were encountered: