Skip to main content
Inspiring
May 25, 2023
Question

Auto-load shelf/assets with an environment variable/startup script?

  • May 25, 2023
  • 1 reply
  • 198 views

I have a custom assets folder that includes all the typical things (alphas, templates, materials, colorluts, etc). Is there a way to distribute this to people without them having to manually add the library path in the settings?

 

I could've sworn I've done this before successfully by placing the asset folder in a folder called "shelves" at the one of the SUBSTANCE_PAINTER_PLUGINS_PATH locations, but that doesn't seem to work anymore.

 

I also have a startup script if it's possible to load it through python, I just don't see anything in the API that mentions it.

This topic has been closed for replies.

1 reply

mhamid3dAuthor
Inspiring
June 26, 2023

Here is the solution I found:

import substance_painter.resource as spr

spr.Shelves.add(
    'my_custom_shelf',
    '/path/to/my/shelf'
)