Hey All,
I'm working on Surface buttons that will allow me to fast forward and rewind in PT during playback for a client. In my efforts so far, it seems I might need two buttons for each, one to get the mouse to click and hold the FF button for instance, and one to release it. I was able to get close in KM, but I think it might be easier with SF, I just haven't found the right way to do it yet. Thank you!
Linked from:
- Christian Scheuer @chrscheuer2021-01-17 13:40:21.281Z2021-01-17 14:33:52.760Z
Hi Joe,
You're right that this needs two separate scripts (and right now, two separate buttons). We already have a feature request logged so that a user can select separate scripts for touch start and ends on button objects, which will make this possible to make with a single button, once that feature is implemented :)
- In reply toJoseph_Trapanese⬆:samuel henriques @samuel_henriques
Hello @Joseph_Trapanese,
@chrscheuer was faster than me :),
here's my idea with one button to Rewind and one to Fast Forward, press once to go and again to stop, or the other button to change direction. its the same function, just need to change the last line for direction.
Let me know if it works for you.sf.ui.proTools.appActivate() function fastTransportBtn(direction){ const btn = sf.ui.proTools.mainWindow.groups.whoseTitle.is('Transport View Cluster').first.groups.whoseTitle.is('Normal Transport Buttons').first.buttons.whoseTitle.is(direction).first const btnState = btn.invalidate().value.value; if (btnState == "") { btn.elementClick(); btn.mouseClickElement({ clickType: "Down", }); } else if (btnState == "Selected") { btn.mouseClickElement({ clickType: "Up", }); } } fastTransportBtn("Rewind") ///fastTransportBtn("Fast Forward")
- JJoseph Trapanese @Joseph_Trapanese
thank you so much! This works perfectly!
- GIn reply toJoseph_Trapanese⬆:Gregor Bonse @Gregor_Bonse
Hey peops, thank you so much for this approach, which I just stumbled upon!
I´m also trying to mimick the rewind / ff behavior of S6 or other Eucon consoles.I
m assuming the hold press functionality is still not possible with Streamdeck / Soundflow? If so, I
d love to add another subtlety to the above script:
When Pro Tools is in play and you hit either the rewind or ff button once, pro tools will STOP at the current location of playback. This functionality is particularly helpful when "Insertion follows playback" is DISABLED, aka PT will jump back to where the play pass started when stop button is pressed.
With the above script rewind / FF don`t work quite like that. How could I add another IF condition that causes the mouse to single click when either rewind or ff buttons are pressed, IF PRO TOOLS IS CURRENTLY IN PLAY?I`d highly appreciate the help and sorry for the typos, working off a weird keyboard :)