Toggle input monitor of selected track
Hello,
I would like to toggle the input monitor of a selected track. Can you help me with a script? I will use this on my print track to reference other mixes. I don't want the Track Name to be required becase the name is always changing. Make sense?
Thank you
- Ben Rubin @Ben_Rubin
Hey @Eric_Sanderson6
I use a similar workflow and this works for me. Chooses the Input of the track rather than the Track Name.
sf.ui.proTools.trackGotoByInputName({ inputName: "PRINT", }); sf.keyboard.press({ keys: "shift+i", });
best
bBen Rubin @Ben_Rubin
If it's unclear, "PRINT" is the name of my print track. So should be changed to reflect the name of your print track.
- SIn reply toEric_Sanderson6⬆:Sebastian @Sebastian
Hi, I was using this script for a long time to toggle input monitoring on my last track in the session but somehow it stop working. Can somebody help me why?
function toggleInput(trackName) { var track = sf.ui.proTools.invalidate().trackGetByName({ name: trackName, makeVisible: true, }).track; var inputBtn = track.buttons.whoseTitle.is('TrackInput Monitor').first; inputBtn.elementClick(); } function toggleInputOfLastTrack() { var lastTrackName = sf.ui.proTools.trackNames.slice(-1)[0]; toggleInput(lastTrackName); } toggleInputOfLastTrack();
- BIn reply toEric_Sanderson6⬆:Brian Gluf @Brian_Gluf
I was also using this. Something in an update changed what the Input Monitor button is called in the script.
Change line 7 to this:
var inputBtn = track.buttons.whoseTitle.startsWith('Input monitoring').first;
Whole thing should be
function toggleInput(trackName) { var track = sf.ui.proTools.invalidate().trackGetByName({ name: trackName, makeVisible: true, }).track; var inputBtn = track.buttons.whoseTitle.startsWith('Input monitoring').first; inputBtn.elementClick(); } function toggleInputOfLastTrack() { var lastTrackName = sf.ui.proTools.trackNames.slice(-1)[0]; toggleInput(lastTrackName); } toggleInputOfLastTrack();
This video is what helped me figure it out:
- PPhilipp Wilfinger @Philipp_Wilfinger
Thanks, had the same problem - this soved it!!