No internet connection
  1. Home
  2. Script Sharing

Pro Tools Score Editor Setup

By Johannes Häger @Johannes_Hager
    2024-12-17 10:26:59.316Z

    I made a macro that does the following:

    • Opens the Score Editor in Pro Tools
    • Changes page size to A4
    • Changes the clef to Treble Clef
    • Adds a key change from bar 1 (you choose the preferred key and hit OK)

    Here is the script in case anyone else is getting tired of having to change these settings manually every time :)

    sf.ui.proTools.appActivateMainWindow();
    
    //Calling command "Show: Score Editor" from package "Pro Tools" (installed from user/pkg/version "srAasovvDiQacRZ2mcId4RrOA8R2/ckp49i4j60000a2100yfwywgf/clxbw9ryd00048510ouxoukak")
    sf.soundflow.runCommand({
        commandId: 'user:ckp49i4j60000a2100yfwywgf:cku7r4tjf00070t10edyt27kp#cksgftzv3000hrw10vnqsc9ah',
        props: {}
    });
    
    //Calling command "Score Setup..." from package "Pro Tools" (installed from user/pkg/version "srAasovvDiQacRZ2mcId4RrOA8R2/ckp49i4j60000a2100yfwywgf/clxbw9ryd00048510ouxoukak")
    sf.soundflow.runCommand({
        commandId: 'user:ckp49i4j60000a2100yfwywgf:cktcnf0ra000x9r109i8wen1u#cktcmxqqt000u9r10vcjnbk7v',
        props: {}
    });
    
    sf.ui.proTools.windows.whoseTitle.is("Score Setup").first.popupButtons.first.popupMenuSelect({
        menuPath: ["A4"],
    });
    
    sf.ui.proTools.viewCloseFocusedFloatingWindow();
    
    const position = sf.mouse.getPosition().position;
    
    sf.mouse.click({
        position: position,
        isRightClick: true,
    });
    
    sf.ui.proTools.focusedWindow.menuItems.whoseTitle.is("Notation Display Track Settings...").first.elementClick();
    
    sf.ui.proTools.windows.whoseTitle.is("Notation Display Track Settings").first.groups.whoseTitle.is("Clef").first.popupButtons.first.popupMenuSelect({
        menuPath: ["Treble Clef"],
    });
    
    sf.ui.proTools.viewCloseFocusedFloatingWindow();
    
    sf.ui.proTools.menuClick({
        menuPath: ["Event","Add Key Change..."],
    });
    
    sf.ui.proTools.windows.whoseTitle.is("Key Change").first.textFields.whoseTitle.is("NumericEntryText").allItems[1].elementClick();
    
    sf.keyboard.type({
        text: "1",
    });
    
    sf.keyboard.press({
        keys: "return",
    });
    
    
    
    • 0 replies