Arming Multiple MIDI/Instrument Tracks
So in Pro Tools, in order to arm multiple instrument/midi tracks at the same time you must hold shift while clicking clicking each track otherwise they toggle by default. I am trying to do this via code but it's not working. Any help would be appreciated.
function trackToggleArm(trackName) {
var track = sf.ui.proTools.trackGetByName({ name: trackName }).track;
var inputBtn = track.buttons.whoseTitle.is('Track Record Enable').first;
inputBtn.elementClick();
}
sf.keyboard.modifiers({
isShift: true
});
trackToggleArm('GR Controller');
trackToggleArm('Keys MIDI');
trackToggleArm('eDrums MIDI');
sf.keyboard.modifiers();
- Christian Scheuer @chrscheuer2023-01-30 02:29:06.842Z
Hi Josh,
When simulating modifier keys, you'll need to use a simulated mouse click, otherwise Pro Tools will ignore your modifier. So that corresponds to using
mouseClickElement
instead ofelementClick
. Note that you won't have to manually runsf.keyboard.modifiers
, instead configure themouseClickElement
action with the modifier keys you want held down.- JJosh @Josh_H
Thank you! I'm pretty new to all of this. I am not exactly sure how to configure the mouseClickElement action. Is this through script or through the macro action? If its through the macro, I'm not really sure how to combine the scripts and the actions. My required usage for SoundFlow is pretty minimal once I get a few of these things up and running, so my apologies for not having read the documentation in-depth.
- In reply tochrscheuer⬆:JJosh @Josh_H
Nevermind! I just figured out a super obvious workaround. I just grouped the tracks and turned on Record Enable. That way it only has to click one anyway.