06-21-2020, 03:48 PM
(This post was last modified: 06-21-2020, 07:19 PM by remkonoteboom.)
In the plugin.py file:
https://github.com/Southpaw-TACTIC/TACTI.../plugin.py
There are a bunch of classes that allow you to programmatically load, unload and reload plugins. Here is some sample code to load a bunch of plugins sequentially. You could also use PluginReloader to reload the plugin (which basically just does a PluginUninstaller and then PluginInstaller execution in a single transactions).
https://github.com/Southpaw-TACTIC/TACTI.../plugin.py
There are a bunch of classes that allow you to programmatically load, unload and reload plugins. Here is some sample code to load a bunch of plugins sequentially. You could also use PluginReloader to reload the plugin (which basically just does a PluginUninstaller and then PluginInstaller execution in a single transactions).
Code:
plugins = [
"vfx/stypes",
"vfx/config",
"my_plugin/stypes"
]
for plugin in plugins:
print "Installing plugin: ", plugin
installer = PluginInstaller(relative_dir=plugin, verbose=False, register=True)
installer.execute()