No internet connection
  1. Home
  2. How to

How to copy a clip to another track and send it to iZotope RX

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.

Solved in post #2, click to view
  • 3 replies
  1. //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();    
    
    ReplySolution
    1. N
      In reply tochrscheuer:
      N Leyers @NickLeyers_old_acc
        2018-06-19 13:15:55.117Z

        **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();

        1. Wow, @NickLeyers! I'm very impressed :) Great to see you got all this working with no help :)