This script will make a copy of the current clip, mute the original, paste the copied clip onto a named track of your choosing, and then send this clip to iZotope RX via Connect, ready for processing in the RX audio editor.
- Christian Scheuer @chrscheuer2018-06-15 19:03:33.490Z
//Name of the track to copy to var targetName = 'Clean 1'; //Mute the current clip sf.keyboard.press({ keys: 'cmd+m' }); //Copy the current clip to the clipboard sf.ui.proTools.menuClickMenu({ menuPath: [ 'Edit', 'Copy' ] }); //Go to our target track sf.ui.proTools.trackSelectByName({ deselectOthers: true, names: [targetName] }); //Paste the clip on our target track sf.ui.proTools.menuClickMenu({ menuPath: [ 'Edit', 'Paste' ] }); //Unmute this clip (now on the target track) sf.keyboard.press({ keys: 'cmd+m' }); sf.wait({ intervalMs: 20 }); //Open iZotope RX 6 Connect and store the window into the 'win' variable var win = sf.ui.proTools.audioSuiteOpenPlugin({ category: 'Noise Reduction', name: 'RX 6 Connect' }).window; //Set processing input mode to 'clip by clip' win.audioSuiteSetOptions({ processingInputMode: 'ClipByClip' }); //Click 'Analyze', ie. send to iZotope RX Audio Editor win.getFirstWithTitle("Analyze").elementClick();
- NIn reply tochrscheuer⬆:N Leyers @NickLeyers_old_acc
**This is the variation I mentioned on FB. I've made 16 shortcuts for routing to 8 tracks: 8 are just for copy to the unprocessed tracks, 8 are for copy + sending directly to RX Connect, (then I add an extra key). **
//Name of the track to copy to
var targetName = 'Unprocessed 1';//Copy the current clip to the clipboard
sf.ui.proTools.menuClick({
menuPath: [ 'Edit', 'Copy' ]
});//Go to our target track
sf.ui.proTools.trackSelectByName({
deselectOthers: true,
names: ['Unprocessed 1']
});//Paste the clip on our target track
sf.ui.proTools.menuClick({
menuPath: [ 'Edit', 'Paste' ]
});//Go back to previous selection
sf.ui.proTools.menuClick({
menuPath: ['Edit', 'Restore Last Selection' ]
});//Open iZotope RX 6 Connect and store the window into the 'win' variable
var asWin = sf.ui.proTools.audioSuiteOpenPlugin({
category: 'Noise Reduction',
name: 'RX 6 Connect'
}).window;//Set processing options
asWin.audioSuiteSetOptions({
processingInputMode: "ClipByClip",
processingOutputMode: "CreateIndividualFiles"
});//Click 'Analyze', ie. send to iZotope RX Audio Editor
asWin.getFirstWithTitle("Analyze").elementClick();Christian Scheuer @chrscheuer2018-06-19 15:07:07.002Z
Wow, @NickLeyers! I'm very impressed :) Great to see you got all this working with no help :)