Log in

View Full Version : Autoload scripts


ajp_anton
3rd June 2022, 22:27
I'm trying to organize my plugins/scripts so that 32 and 64 bit plugins are in their separate folders (autoloaded by the appropriate version of Avisynth), but all .avsi scripts would go into one shared folder for easier maintenance. So I'm trying to add this as an additional autoload folder.

I'm using Avisynth+. Adding a .avsi script into the plugins folder with an AddAutoloadDir() pointing at my scripts folder complains that no autoload dirs can be added after the autoload procedure has begun.

Is there any other autoloadable script that can load a new folder? Can I add more autoload folders in the registry?

ChaosKing
3rd June 2022, 22:57
I use it like this. Works great without the need of AddAutoloadDir()
PluginDir2_5 (HKLM, x64): D:\Avisynth\AVSPLUS370_x64\plugins
PluginDir+ (HKLM, x64): D:\Avisynth\SCRIPTS

ajp_anton
4th June 2022, 10:20
Oh right. Since I'm never going to use anything older than AVS+, I can just repurpose the "2.5 dir" as the script dir. I guess that's an acceptable option =).