I am creating a custom script that build banks to a specific folder, rather than changing the build path in the preferences. The script will then fallback to the default path, not changing the default build behaviour.
Everything works fine except that once you have set the “listeners” to buildStarted
and buildEnded
, they live on. So if I build using my script, and then build using F7, the callback functions will run again.
Is there any way to remove the “listeners” to buildStarted
and buildEnded
? I can’t seem to find anything in the documentation.
I could skip the listeners and rely on the execution order but I rather learn something new. •͡˘㇁•͡˘
SetBanksOutputDirectory(outputDirectory);
studio.project.build();
SetBanksOutputDirectory(fallbackDirectory);
Thanks
Mattias