How to pass config to usdview

I’m trying to pass a config value to usdview (viewerMode:true), but I can’t seem to get the --config arg to work. I’ve tried passing a json filepath and as a dictionary, but neither seem to work. Probably I am missing something obvious.

Hey Dan, what version of USD are you using?

Hi Dhruv! I’m using 0.23.8

Hi @dziegler ,
Savable and loadable configs in usdview was a lovely intern project a couple summers back, but at the time, we didn’t have the resources to follow through with extensive user testing, and so we left the whole thing – except the command-line option! – guarded an environment variable, USDVIEWQ_CONFIG_CONTROLLER .

We sadly have still not had time to do that testing, and have not enabled the feature by default. Though last year I did some testing myself (on Linux only), and no big problems jumped out at me, and I think it is a pretty darned useful feature for folks who use usdview in multiple different workflows/contexts.

So if you set that env var to a non-empty value in your shell before launching usdview, you should get a menu item (in File menu I believe) for saving and applying configs or state sets, and the command-line option should then work, if you are naming a config that you used the GUI to create.

If you or others exercise this feature and find problems, please do file Issues on GitHub about it! I’d love to see this becomes a useful and used feature.

1 Like

Thanks! I will give this a try