How to change specific Pro Tools nudge values (in msec)
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!!
Linked from:
- samuel henriques @samuel_henriques
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" }); }
- DDeeJay Ford @DeeJay_Ford
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]
samuel henriques @samuel_henriques
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?
- DDeeJay Ford @DeeJay_Ford
It works!! Thanks so much man!!