Author Topic: add/update shelf path on startup  (Read 1117 times)

We are trying to dynamically change shelf paths on Painter's startup (the version of our shelf changes when we update it).
Currently, we have a system that updates windows registry keys and we can add new shelves that way and update paths to the existing ones. We run it from a startup python plugin. The problem is that this happens AFTER the shelves are already loaded and we need to restart substance again to load shelves from the new paths.

Is there a way to add/update a shelf from python API?
Is there a way to tell Painter to reload all shelves after we change the paths?

EDIT: it would be amazing if we could specify an environment variable with a path to a shelf to load.

thank you
Last Edit: August 06, 2020, 08:48:44 am

hello, devs.
possible/not possible/being worked on/bug/limitation ?


If you are looking to which functions are exposed or not, you can find it in the integrated doc in the installation of your Substance Painter:

On Windows:

from the UI Help > Documentation > Python API

It is not possible with the last version to manipulate shelves but will come in a next release.

Last Edit: October 21, 2020, 06:02:34 pm

thank you. this is very good news.
(I'm aware of the documentation)