Selecting Last Track In Session
A simple question I think;
Can you select the last track in a session without knowing its name and without having it scroll into view?
Thanks
Raphael Sepulveda @raphaelsepulveda2022-02-24 04:33:18.805Z@Andrew_Downes, yeah! Here you go:
function selectLastTrackInSession() { sf.ui.proTools.appActivateMainWindow(); sf.ui.proTools.mainWindow.invalidate(); const trackNames = sf.ui.proTools.trackNames; sf.ui.proTools.trackSelectByName({ names: [trackNames[trackNames.length - 1]] }); } selectLastTrackInSession();- MMarkus Meyer @Markus_Meyer
@raphaelsepulveda Raphael, is there a way to add the "control shift" command to this action so the edit window scrolls down to the last track? I have been trying to figure this out but unfortunately, I have no clue! Thank you so much
Raphael Sepulveda @raphaelsepulveda2023-08-22 14:38:17.245ZUnfortunately, using that command only works if the track is already visible on the screen. I suggest using an "end" keystroke to bring the Edit window all the way down. Just place this line at the end of the script:
sf.keyboard.press({ keys: "end" }); // Bring Edit window down to last track- MMarkus Meyer @Markus_Meyer
Different Key Command, same action. Works perfectly and does exactly what I want it to do. Thank you so much Raphael
- AIn reply toAndrew_Downes⬆:Andrew Downes @Andrew_Downes
I thank you very much!