Is there a way to turn off input monitoring for all tracks, including hidden tracks?
- Raphael Sepulveda @raphaelsepulveda2025-05-01 16:08:12.300Z
@Hakan_Glante, sure is!
// Disable Input Monitoring on All Tracks sf.app.proTools.setTrackInputMonitorState({ trackNames: sf.app.proTools.tracks.invalidate().allItems .map(track => track.name), enabled: false, onError: "Continue" });
- HHakan Glante @Hakan_Glante
Thank you, @raphaelsepulveda!
It works for Audio Tracks, but not for Instrument Tracks.Chris Shaw @Chris_Shaw2025-05-01 21:47:39.925Z
The script does work on Instrument tracks but if they don't have an audio input assigned the script won't turn off their input monitoring.
This is probably a PT bug.
Be sure your Instrument track has an input assigned to it.- HHakan Glante @Hakan_Glante
@Chris_Shaw Unfortunately that doesn’t work for me.
Related - another thing that’s weird about Instrument Tracks is that you can enable input monitoring even if there’s no input assigned.Raphael Sepulveda @raphaelsepulveda2025-05-02 15:41:26.546Z
As Chris mentioned, there seems to be a PT discrepancy when handling Input Monitoring with Instrument tracks. That will need to be addressed by Avid.
In the meantime, here's a script that will turn off Input Monitoring on all Instrument tracks. You can put it right after the first script I posted. Downside is this is only able to handle Instrument tracks that are not hidden.
sf.ui.proTools.mainWindow.invalidate(); sf.ui.proTools.visibleTrackHeaders.forEach(trackHeader => { // Ensure track is an Instrument Track if (!trackHeader.title.value.endsWith("Inst Track ")) return; // Identify Input Monitoring button const inputMonitoringBtn = trackHeader .buttons.whoseTitle.startsWith("Input monitoring").first; // Turn off Input Monitoring if (inputMonitoringBtn.title.value.startsWith("Input monitoring is enabled")) { inputMonitoringBtn.elementClick(); } });
Tested on Pro Tools 2024.10.2. May not work at all on other versions due to buttons named completely different.
- HIn reply toHakan_Glante⬆:Hakan Glante @Hakan_Glante
@raphaelsepulveda Thanks a lot!