I'm trying to set up a script that opens up the Reverse plug (Audiosuite), renders it and then closes the plug again. I've simply copied scripts from your own SoundFlow scripts. The last command where I want it to close Focused Floating Window won't work after the two other commands, but if I run the close Focused Floating Window by itself it closes the plug
I have no experience with scripts, so not really sure what to change to make this work
sf.ui.proTools.audioSuiteOpenPlugin({
category: "Other",
name: "Reverse",
});
sf.ui.proTools.audioSuiteRenderCurrent();
sf.ui.proTools.viewCloseFocusedFloatingWindow();
that's how my script looks, except that the 9 is on the same line as the last script-command hehe
ok so it turns out it's working about half the time, anything I can change to make it more stable?
- Christian Scheuer @chrscheuer2020-04-24 10:45:30.697Z
Hi Joachim.
This actually may be easier for you to get started doing with a Macro, and then convert it to a script afterwards.
To do that,- Click "+New", choose "Macro".
- Click "Add Action", and in the popup "Select action to add", type "AudioSuite" (one word), and choose the action "Open AudioSuite Plugin".
- Now fill out Category and Name, like this:
- Add an action: "Render AudioSuite Plugin":
- Now drag the orange "window" output from the "Open AudioSuite Plugin" action onto the "AudioSuite Window" property of the "Render AudioSuite Plugin" action.
- It should look like this now:
- Add an action "Close Window":
- Now drag the orange "window" output onto the "UI Element" property of the "Close Window" action.
- You should now have this:
If you click the "Convert to Script" button, you can now see this converted to code:
const window = sf.ui.proTools.audioSuiteOpenPlugin({ category: "Other", name: "Reverse", }).window; window.audioSuiteRender(); window.windowClose();
- JJoachim Jorddal @Joachim_Jorddal
That was way easier and works perfectly :)
Thank you for the fast reply!