No internet connection
  1. Home
  2. Macro and Script Help

Vocalign 'Move Down and Process'

By Richey McCourt @Richey_McCourt
    2022-05-09 14:52:39.352Z

    Title

    Vocalign 'Move Down and Process'

    What do you expect to happen when you run the script/macro?

    Hi, Trying to have this script move down and process (as it is) but also 'render' the results. Not sure how to get it to render as well? Any time I try and edit the script it jumps out of the edit screen and back to my main Pro Tools Deck? Also getting an error on line 35? Any help would be really appreciated!

    Thanks,
    Richey

    Are you seeing an error?

    Sometimes saying line 23, sometimes line 35

    What happens when you run this script?

    it moves down and captures the dub fine but comes with an error (stated previously - line 23/35). I could leave it like this, but would like the error gone - also would like the render option added at end of script?

    How were you running this script?

    I used a Stream Deck button

    How important is this issue to you?

    4

    Details

    {
        "inputExpected": "Hi,\nTrying to have this script move down and process (as it is) but also 'render' the results. Not sure how to get it to render as well? Any time I try and edit the script it jumps out of the edit screen and back to my main Pro Tools Deck?\nAlso getting an error on line 35?\nAny help would be really appreciated!\n\nThanks,\nRichey\n",
        "inputIsError": true,
        "inputError": "Sometimes saying line 23, sometimes line 35\n",
        "inputWhatHappens": "it moves down and captures the dub fine but comes with an error (stated previously - line 23/35). I could leave it like this, but would like the error gone - also would like the render option added at end of script? ",
        "inputHowRun": {
            "key": "-MpfwmPg-2Sb-HxHQAff",
            "title": "I used a Stream Deck button"
        },
        "inputImportance": 4,
        "inputTitle": "Vocalign 'Move Down and Process'"
    }

    Source

    
    // Ensure we're looking at the correct Pro Tools window
    sf.ui.proTools.appActivateMainWindow();
    sf.ui.proTools.windows.whoseTitle.contains('Edit:').first.elementWaitFor();
    
    // Ensure we're in Edit Keyboard focus mode
    sf.keyboard.press({
        keys: "cmd+alt+1",
    });
    
    sf.keyboard.press({
        keys: "semicolon",
    });
    
    // Click Dub button to select Dub track
    sf.ui.proTools.firstAudioSuiteWindow.mouseClickElement({
        relativePosition: {"x":57,"y":286},
    });
    
    //Check there is a selection made on the current track
    var selClipCheck = sf.ui.proTools.getMenuItem("Edit", "Separate Clip", "At Transients")
    if (!selClipCheck.exists)
        throw "No selection made on source track."
    
    // Click Dub button to select Dub track
    sf.ui.proTools.firstAudioSuiteWindow.mouseClickElement({
        relativePosition: {"x":57,"y":286},
    });
    // Wait a second for the file to load in
    sf.wait({
       intervalMs: 1000,
    });
    
    // Ensure we're writing to the current track
    sf.ui.proTools.windows.whoseTitle.is('Audio Suite: VocALign Project').first.popupButtons.whoseTitle.is('FXGeneralPopup').first.popupMenuSelect({
        menuPath: ["no track selected"],
    });
    
    //Check there is a selection made on the current track
    var selClipCheck = sf.ui.proTools.getMenuItem("Edit", "Separate Clip", "At Transients")
    if (!selClipCheck.exists)
        throw "No selection made on destination track."
    
        
    // Process the file
    asWin.audioSuiteRender();
    
    
    

    Links

    User UID: ZvuWMAH7AHMG1IPxpoOENpPxiU02

    Feedback Key: sffeedback:ZvuWMAH7AHMG1IPxpoOENpPxiU02:-N1dIhhoSWjZuvETfCcs

    Feedback ZIP

    • 0 replies