By Gary Keane @Gary_Keane
Hi all, is there a way for Sound Flow to pop up a window to set the clip gain nudge value?
Here's what I normally have to do:
- Select Pro Tools Menu
- Select Preferences
- Select Editing Tab
- Enter Clip Gain Nudge Value
- Select Ok
Ideally, it would be great to press a button on the stream-deck and a SoundFlow window pops up saying 'enter clip gain nudge value' and I just enter it and hit return and its set.
Any ideas?
- OOwen Granich-Young @Owen_Granich_Young
You'll just need to do a prompt for value instead of a fixed value.
Chris Shaw @Chris_Shaw2024-03-26 15:40:19.552Z
Here you go:
// Get new value from user as array const newNudgeValue = sf.interaction.displayDialog({ prompt:"Enter new nudge value\n(Format: #.#)", defaultAnswer:"1.0", onCancel:"Abort" }).text.split(".") // Open Prefs > Editing tab sf.ui.proTools.menuClick({ menuPath:["Setup","Preferences..."] }) const prefWindow = sf.ui.proTools.windows.whoseTitle.is("Pro Tools Preferences").first; prefWindow.elementWaitFor(); prefWindow.radioButtons.whoseTitle.is("Editing 3 of 9").first.elementClick(); // Click Nudge value text box const nudgeValueField = prefWindow.groups.whoseTitle.is("Clips").first.textFields.whoseTitle.is("4").first nudgeValueField.elementClick() // Type new value sf.keyboard.press({ keys: newNudgeValue[0] }); sf.keyboard.press({keys:"left"}) sf.keyboard.press({ keys: newNudgeValue[1] }); //Close prefs window prefWindow.buttons.whoseTitle.is("OK").first.elementClick() prefWindow.elementWaitFor({waitType:"Disappear"})
- OOwen Granich-Young @Owen_Granich_Young
Now if only we could do this with an sdk and not have to open the preferences to adjust it... would give us so many other clip gain powers too.