Skip to main content
Participant
August 24, 2022

[Scripting] Unable to reload plugins folder via Python after updating substance_painter_plugins.path

  • August 24, 2022
  • 0 replies
  • 203 views

Heya,

I am able to update the required environment variables within the scope of Substance Painter and its plugins (i.e. %SUBSTANCE_PAINTER_PLUGINS_PATH%, as well as the variable in substance_painter_plugins.path)

After programmatically updating these variables (and also calling substance_painter_plugins.update_sys_path()), however, clicking the "reload plugins folder" option in Substance does not load up the new correct folder, despite the paths reflecting as correct when I checked via Python console. Just wondering if I am able to reload the plugins folder programmatically via the Python API. 

Thanks!