No internet connection
  1. Home
  2. How to

How to change specific Pro Tools nudge values (in msec)

By DeeJay Ford @DeeJay_Ford
    2021-10-08 08:40:06.049Z

    Hello, I have a question and I apologize in advance if it's been addressed before. So when I'm mixing in Pro Tools, I like to set my Grid value to Bars|Beats at 1 Bar. But I also like to set my Nudge value to Min:Secs at 100 msec! I've tried to change the code in your SoundFlow presets to make these adjustments, but I'm having zero luck. Can someone help me please?! Thank you in advance for any help also!!

    • 4 replies
    1. samuel henriques @samuel_henriques
        2021-10-09 18:17:45.525Z2021-10-10 10:25:45.617Z

        Hello DeeJay_Ford,

        Here you go.
        Let me know if this is it.

        sf.ui.proTools.appActivateMainWindow()
        
        const gridBtn = sf.ui.proTools.mainWindow.gridNudgeCluster.gridControls
        const gridValue = gridBtn.value.invalidate().value
        
        if (gridValue.trim() != "1| 0| 000") {
            gridBtn.popupMenuSelect({ menuPath: ["Bars|Beats"] });
            gridBtn.popupMenuSelect({ menuPath: ["1 bar"] });
        
        }
        
        
        const nudgeBtn = sf.ui.proTools.mainWindow.gridNudgeCluster.nudgeControls
        const nudgeValue = nudgeBtn.nudgeValue.value.invalidate().value
        
        if (nudgeValue.trim() != "0:00.100") {
            nudgeBtn.nudgeValuePopupButton.popupMenuSelect({ menuPath: ["Min:Secs"] });
            sf.ui.proTools.nudgeSet({ value: "000 00 100" });
        }
        
        1. DDeeJay Ford @DeeJay_Ford
            2021-10-10 09:31:24.916Z

            Hello Samuel,

            Thanks so much for the reply man! I was finally able to test out the script you shared with me, and sadly it's giving me an error. Please see directly below! Any ideas?

            10.10.2021 05:27:40.15 [Backend]: !! Command Error: Set Grid & Nudge Values - 1 Bar|100 msec [user:ckudlhnyk000ek81047jx45ay:ckul09uwo0000jw10ljqams51]:
            Could not open popup menu (Set Grid & Nudge Values - 1 Bar|100 msec: Line 5)
            Popup menu was not found
            Popup window was not found after waiting 2000 ms

            << Command: Set Grid & Nudge Values - 1 Bar|100 msec [user:ckudlhnyk000ek81047jx45ay:ckul09uwo0000jw10ljqams51]

            1. samuel henriques @samuel_henriques
                2021-10-10 10:26:50.183Z

                Ui, I'm sorry, I think you need to select pro tools first.

                And if you notice the grid and nudge areas are covered with any window, they need to be visible on screen, otherwise, soundFlow won't be able to see access the popups.

                I added the line above, can you try now?

                1. DDeeJay Ford @DeeJay_Ford
                    2021-10-11 06:09:57.609Z

                    It works!! Thanks so much man!!