Set ofx plugin path using python api

Hi,

I’m wondering if it’s possible to add ofx plugin path dynamically using the python api.
I tried using the NatronEngine.natron.getSettings() without success.
The only way to source ofx plugin from a specific path I found is to set the OFX_PLUGIN_PATH env variable before starting Natron.

Thank you,
Louise

Hi, I finally found the solution with NatronEngine.natron.getSettings().
Here is the snippet code:

settings = NatronEngine.natron.getSettings() 
p = settings.getParam("extraPluginsSearchPaths") 
p.setTable([["Path0", "/.../.../neatvideo/NeatVideoOFX.v5.1.8"]]) 
settings.saveSettings()

Thank you,
Louise

2 Likes