Is there a way to enable or disable a Macros Trigger with another Macro?
Hello,
Is there a way to create a macro or scrip that activates or deactivates other macro's trigger? I have 2 different workflows in ProTools, and I'm constantly manually disabling or enabling some Macros triggers depending on the task I'm doing. It would be great to have just a script and assign it to a deck button or key command to enable or disable the triggers for my macros. Is this possible? Thanks!
- In reply toDaniel_Betancourt6⬆:Christian Scheuer @chrscheuer2023-11-17 22:12:23.019Z
There's no way to programmatically control triggers, but you can use globalState variables to have scripts call other scripts depending on state.
For example, you could have one script that sets
globalState.currentWorkflow
to either"Dialog"
or"SFX"
for example.
Then, assign triggers to scripts that checks that globalState variable and performs the action you want depending on what the mode has been set to.Christian Scheuer @chrscheuer2023-11-18 14:52:55.495Z
The script to set the current mode would be, for example:
globalState.currentWorkflow = 'Dialog';
and another:
globalState.currentWorkflow = 'SFX';
Then, another script with a trigger that should do two different things depending on the mode, would be:
if (globalState.currentWorkflow === 'Dialog') { //Do the Dialog thing here } else if (globalState.currentWorkflow === 'SFX') { //Do the SFX thing here }
There are other ways to achieve it, but this would be the general structure.