public static string[] GetPluginList(otpModule mod) { int nplugins = otpGetNumPlugins(mod); var ret = new string[nplugins]; otpPluginInfo info = default(otpPluginInfo); for (int i = 0; i < nplugins; ++i) { otpGetPluginInfo(mod, i, ref info); ret[i] = info.name; } return(ret); }
[DllImport("OpenToonzPlugin")] public static extern otpInstance otpCreateInstance(otpModule mod, int i);
[DllImport("OpenToonzPlugin")] public static extern int otpGetNumPlugins(otpModule mod);
[DllImport("OpenToonzPlugin")] public static extern void otpGetPluginInfo(otpModule mod, int i, ref otpPluginInfo dst);
[DllImport("OpenToonzPlugin")] public static extern void otpUnloadModule(otpModule mod);