Skip to main content
Inspiring
April 12, 2024

Existing plugins in the folder defined by SAMPLER_PLUGIN_PATH can crash Sampler

  • April 12, 2024
  • 3 replies
  • 409 views

Hi wanted to report a bug that I encountered when autoloading plugins from the folder specified by SAMPLER_PLUGIN_PATH. If the zip file is still in the SAMPLER_PLUGIN_PATH folder when you start Sampler and the plugin has already been installed, Sampler crashes.  As a workaround I've included code in my plugins to remove the zip file after the plugin has been loaded.

 

See more details in this post:

https://community.adobe.com/t5/substance-3d-sampler-discussions/is-there-a-way-to-automate-plugin-installation/m-p/14441319#M1461

 

Also separate question. Seems like whenever I create a new post the response is usually pretty quick but when I reply to an existing thread, I usually get no response. Do you prefer if we keep creating new posts or replying to existing threads when we'd like to continue the discussion?  Thanks!

3 replies

Baptiste_Substance_3D
Community Manager
Community Manager
April 30, 2024

We were able to reproduce the issue and fixed it for the next release.

 

Indeed, we're looking at having a default path (like Documents/Adobe/Sampler/Scripts) that Sampler will parse at start-up. It could simplify the environment set-up. No ETA yet.

Inspiring
April 18, 2024

Thanks for the reply Baptiste! Other than that issue, the SAMPLER_PLUGIN_PATH variable works as expected. However, automating the setup of the environment variable during our plugin installation so that it's set whenever Sampler is opened is a bit trickier, especially for mac.
Would it be possible to add a setting in Sampler to adjust the SAMPLER_PLUGIN_PATH or have a way to specify that folder in the API?

Thanks

Baptiste_Substance_3D
Community Manager
Community Manager
April 15, 2024

Hello,

 

Thanks for reporting the issue. We will investigate.

 

Indeed, I missed your following answers on the previous thread. Usually, it's better to keep one topic per thread and open new threads for new problems.

Thanks