OpenUSD icon indicating copy to clipboard operation
OpenUSD copied to clipboard

Environment variable for setting preferred resolver

Open abbec opened this issue 5 months ago • 2 comments

Currently, the only way to set the preferred primary resolver is to call SetPreferredResolver() at the correct time. However, due to plugin loading order in different DCCs running this at an appropriate time can be difficult. Having an environment variable, say AR_PREFERRED_RESOLVER that sets the default for preferred resolver would make it easier to make sure it is set at an appropriate time.

abbec avatar Oct 31 '25 09:10 abbec

We think that's quite reasonable, even given that not all platforms support env var's equally well. We'd consider a PR if you'd like to send one in with a CLA? THe variable name should have a "PXR_" prefix, and SetPreferredResolver() should still win if it was called, we think.

Thanks!

spiffmon avatar Nov 03 '25 18:11 spiffmon

Filed as internal issue #USD-11611

(This is an automated message. See here for more information.)

jesschimein avatar Nov 03 '25 19:11 jesschimein