Package published on December 22, 2020 by Chris Shaw
These bits of code will help make your scripts compatible with the Mix window
It will determine if the user is triggering your script from the mix window and, if necessary, switch to the edit window.
Once your script is finished it wil switch back to the mix window.
The code should be self explanatory.
This script can be run as is to demonstrate how it works. Try running it from both the Mix and Edit windows.
Feel free to ask questions in this packages forum