I don’t know. But if you search the code base for os.environ.get
you’ll see a list of everytime mGear queries your environment variables. (There might be more, if there are different syntaxes for querying it. But that is one way of querying environment variables from Python.)
From there, you can copy the way that it uses it. You can create any environment variable you want in your Maya.env file. And then in your code, add it.
- Add MY_CUSTOM_SKIN_PATH to Maya.env
- Find the command that opens the browse skin dialog window.
- Inject your os.environ.get(“MY_CUSTOM_SKIN_PATH”) there, into the default directory flag.
And yeah, there are a few places in mGear where I wish the dialog window would at least remember where you last browsed to. skinPacks, skinFiles, picker files, lips_rigger and eyes_rigger files. There might be more.