PixarAnimationStudios / OpenUSD

Universal Scene Description
http://www.openusd.org
Other
5.45k stars 1.13k forks source link

Global Variables & String Substitution feature suggestion #3062

Closed BSalem closed 2 weeks ago

BSalem commented 2 weeks ago

This is not actually an issue, but a feature suggestion...

I wish if I can set global variables/properties on the stage level (or probably under 'globals' namespace, and to have the option to use them as variables in the file paths of usd references and texture paths.... etc, then these paths to be resolved on usd stage load.

Then when we can have the option to import global variables override usd, that overrides the global variables and accordingly overrides the paths to everything else referenced based on these global variables.

Examples of use:

spiffmon commented 2 weeks ago

Hi @BSalem - good to hear from you again after a long while! Although you may need to tweak your thinking just a bit, I believe our USD Expression Variables feature provides what you're looking for, and a bit more (you can use variable expressions for variant selections, as well!). This feature was fully deployed in 23.11 (and mostly final in 23.08). Please have a read and try it out, and let us know here or on the forum.openusd.org if you have any questions.

BSalem commented 2 weeks ago

Hi Sepastian @spiffmon Wow, that's wonderful, super amazing! I regret that I didn't know about it till now. Thanks

jesschimein commented 2 weeks ago

Filed as internal issue #USD-9597

spiffmon commented 2 weeks ago

Going to close, for now!