Hi @Mark_Mangini,
As requested, here is a script to toggle AudioSuite plugins open and closed. Simply change the pluginCategory
and pluginName
to what you want :-)
var pluginCategory = 'Pitch Shift';
var pluginName = 'Pitch II';
var win = sf.ui.proTools.getAudioSuiteWindow(pluginName);
if (win && win.exists) {
win.windowClose();
} else {
var asWin = sf.ui.proTools.audioSuiteOpenPlugin({ name: pluginName, category: pluginCategory }).window;
asWin.buttons.whoseTitle.is('Target button').first.elementClick();
}
Here is a video on "How to copy a script from the SoundFlow User Forum, paste it into the SoundFlow and use in Pro Tools"
Let me know if that works for you :-)
Rock on!
- Kitch Membery @Kitch2021-04-09 01:02:42.339Z
Please find the answer in the post above. :-)
- MMark Mangini @Mark_Mangini
Thanks Kitch, that worked great!
- MMark Mangini @Mark_Mangini
This worked for the DUPLICATE plugin but not for the EQ3 audio suite plugin. What's the difference? This code opens the EQ3 plugin but doesn't close it. It is nested the same number of layers so something else is up with the code?
- MMark Mangini @Mark_Mangini
Ignore that comment. User Error. This is working fine. Thanks.
- MMark Mangini @Mark_Mangini
Having trouble making this code work with Pitch 'n Time Pro. Is the apostrophe causing a code problem. This works for all my other AudioSuite plugins but not this one
Kitch Membery @Kitch2021-04-12 17:25:42.096Z
Hi @Mark_Mangini,
I don't have a "Pitch 'n Time Pro" to test but I think I see the issue from the name of the plugin.
So when entering the name into the action's property, the special character
'
needs to be escaped by adding a backslash before it. Therefore when entering the name of the plugin type it asPitch \'n Time Pro
. This should resolve this edge case.- MMark Mangini @Mark_Mangini
Thanks Kitch. That did the trick. Appreciate the help.
- MIn reply toKitch⬆:Mark Mangini @Mark_Mangini
Not working well. If I leave ProTools and come back to it, the window turns itself on even if I've closed it. It doesn't seem to work well when duplicated and I change the names of the Plugins and locations within the script. They just don't run.
Kitch Membery @Kitch2021-04-09 17:18:43.727Z
Hi Mark,
From what you are describing it seems that you may have assigned an Application trigger to the toggle AudioSuite scripts, which means each time Pro Tools is activated the script is run.
To remove the application triggers from the toggle AudioSuite scripts, select the script of the plugin that is opening each time you return to Pro Tools and then click the "x" in the right-hand corner of the trigger button.
Also, make sure to have the exact spelling and capitalization of the
pluginCategory
andpluginName
and have them in single or double quotes. :-)Let me know if that works for you.
- MIn reply toKitch⬆:Mark Mangini @Mark_Mangini
Another strange anomaly: I put the old AudioSuite Macros back on buttons (the ones that don't toggle) and left the new one you wrote in my ProTools Package. Even though it is not assigned to a button, I would get error messages from SoundFlow and the plugin would turn itself on anyway.
Kitch Membery @Kitch2021-04-09 17:23:58.903Z
This may be related to the same issue as I mentioned above. If you are triggering the scripts from your Pro Tools Stream Deck, you don't need to manually add a trigger to the scripts. :-)
Let me know if that makes sense. :-)
- MIn reply toKitch⬆:Mark Mangini @Mark_Mangini
When I create a new Script in the package, I cannot paste the code, above. There is now field for pasting.
- MIn reply toKitch⬆:Mark Mangini @Mark_Mangini
I hit the + button, selected new script, but there is no field to paste your code.
- MIn reply toKitch⬆:Mark Mangini @Mark_Mangini
This was not the case last night when I tried this.
Kitch Membery @Kitch2021-04-09 21:53:30.862Z
Note: This issue has been resolved offline :-)
- MIn reply toKitch⬆:Mark Mangini @Mark_Mangini
How or where do I make a suggestion for a feature?
Kitch Membery @Kitch2021-04-09 22:02:35.890Z
Hi Mark,
You can post an idea in the "Ideas" category of the forum. Here is the link;
:-)
- AIn reply toKitch⬆:AddingSound Addington @AddingSound_Addingto
Hi Kitch.
I realy like this script you have posted in the top of this thread.
But I realy miss a importaint feature, that is to add a preset to the open when the pluginn is opened, so it opens with my prefered settings. Will that be possible to add to the script?
thanksKitch Membery @Kitch2022-04-11 20:03:17.648Z
Thanks for your patience :-)
This script should do the trick.
const pluginCategory = "EQ"; const pluginName = "EQ3 7-Band"; const presetMenuPath = ["TEST 1"]; let win = sf.ui.proTools.getAudioSuiteWindow(pluginName); if (win && win.exists) { win.windowClose(); } else { var asWin = sf.ui.proTools.audioSuiteOpenPlugin({ name: pluginName, category: pluginCategory }).window; asWin.audioSuiteSelectPreset({ presetMenuPath, }); //Remove the 2 forward slashes at the start of the next line of code if you //need the Target button of the AudioSuite plugin to be greyed out. //asWin.buttons.whoseTitle.is('Target button').first.elementClick(); }
As noted in the script comments there is a line of code that I've commented out as it may not be needed for your specific workflow. If you need the "Target button" of the AudioSuite plugin to be clicked (greyed out) when the AudioSuite plugin opens, just remove the two forward slashes at the start of the last line of code
asWin.buttons.whoseTitle.is('Target button').first.elementClick();
I hope that helps :-)
Rock on!
Kitch Membery @Kitch2022-04-12 17:41:53.199Z
Via the chat, you mentioned that you could not get the above script working.
To get this script working, you'll need to copy and paste the script into SoundFlow. Here is a video on how to do this;
You'll then need to customize the first three lines of the script;
const pluginCategory = "EQ"; //Replace "EQ" with the plugin Category/Manufacturer as seen in the AudioSuite Menu const pluginName = "EQ3 7-Band"; //Replace "EQ3 7-Band" with the plugin name as seen in the AudioSuite Menu const presetMenuPath = ["TEST 1"]; //Replace "TEST 1" with your preset name
I hope that helps.
- AAddingSound Addington @AddingSound_Addingto
Thanks Kitch.
It works for me now, thanks.
Kitch Membery @Kitch2022-04-13 07:39:22.489Z
Great to hear :-)
Rock on!