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

Make Active A Send and Plugin at the same time.

By Lynn Graber @Lynn_Graber
    2023-11-08 18:02:08.986Z

    Title

    Make Active A Send and Plugin at the same time.

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

    This script is supposed to make a send and a plugin active at the same time.

    Are you seeing an error?

    Doesnt work

    What happens when you run this script?

    This is a compilation from scripts ive found, but i cant get them to work together.

    How were you running this script?

    Other

    How important is this issue to you?

    3

    Details

    {
        "inputExpected": "This script is supposed to make a send and a plugin active at the same time. ",
        "inputIsError": true,
        "inputError": "Doesnt work\n",
        "inputWhatHappens": "This is a compilation from scripts ive found, but i cant get them to work together. ",
        "inputHowRun": {
            "key": "-MpfwoFyZNOpBC3X5xGI",
            "title": "Other"
        },
        "inputImportance": 3,
        "inputTitle": "Make Active A Send and Plugin at the same time. "
    }

    Source

    
    sf.ui.proTools.trackGetByName({ name: "Drums", makeVisible: true }).track.trackSendToggleActive({
        sendNumber: 3,
    });
    
    sf.ui.proTools.trackGetByName({
        name: "Bass",
        makeVisible: true,
    });
    
    const insertA = sf.ui.proTools.selectedTrack.groups.whoseTitle.is('Inserts A-E').first.buttons.whoseTitle.is('Insert Assignment F').first
    
    insertF.popupMenuSelect({
        isRightClick: true,
        menuPath: ["Make Inactive"],
        targetValue: "Enable",
    });
    
    insertF.popupMenuSelect({
        isRightClick: true,
        menuPath: ["Make Active"],
        targetValue: "Enable",
    });
    
    

    Links

    User UID: zNchbgqMvBUNXIhmLZsA7wqfiDl1

    Feedback Key: sffeedback:zNchbgqMvBUNXIhmLZsA7wqfiDl1:-Nik5JWRR8hg-Y5Sue4H

    Feedback ZIP: xSAh8n5m+Vj5ODX3qfrzq7SZk2nxHT+01bFDkEJXhWfwJs4nw/sdXXvqhmCRlcNEdL/iv8aqFn2MEDq4mf8qYHPG8yTdQk7cWtXaLhw4lScYPTfKXZIchs4/4T7U44CEMN/OWJVZoMjBiXKGxVPdE1YbhZdTrlOvZ6cQKsvWhgdYEdY/VOXzP74zYaN5951cgtFoxq47CvG0N8fSBYY4C1KWeSroeAALCawrSva67kezOmRO/5fTgJ6cOMjCVEGw7VeeWitO5ALb94UaACzTvKj7oCbdneX8IoADYCajOmU2Xcfg5xBY5NBSn/nDKVzQozrfXJOjhSqVtcVD4NJIb0tXu+DwZIcL3SAg15nTLgU=

    • 1 replies
    1. L
      Lynn Graber @Lynn_Graber
        2023-11-08 18:20:56.682Z

        I was able to get this one to work.

        sf.ui.proTools.appActivateMainWindow();
        
        const insertF = sf.ui.proTools.selectedTrack.groups.whoseTitle.is('Inserts F-J').first.buttons.whoseTitle.is('Insert Assignment F').first.mouseClickElement({
            isCommand:true,
            isControl:true,
            clickCount:2
        })
        
        sf.ui.proTools.trackGetByName({ name: "Drums", makeVisible: true }).track.trackSendToggleActive({
            sendNumber: 3,
        });```