There have been several solutions and packages posted here to create a macro which changes all track heights to the same size, but all are failing with the current version of Pro Tools. I'm wondering if someone can create a new script that works?
Thanks!
- Chris Shaw @Chris_Shaw2024-04-04 18:49:00.736Z2024-04-04 19:18:31.244Z
There were some changes in SF and PT 2024.3 that requires a slight change to clicking the track height menu. Older scripts by default use the "TopLeft" anchor point to calculate the click point for the track height menu. The newest version of SF now defaults to "MidCenter". To fix this you just have to set the anchor point property to "TopLeft" as seen in line 11 in the code below.
You can just add theanchor: "TopLeft"
property to thepopupMenuOpenFromElement
call in any older script that you've found that usesrelativePosition:
to make them work.
This script will change the height of all visible tracks in a session. Just change the
size
variable to which ever height you need.var size = 'small'; sf.ui.proTools.appActivate(); var tracksToChangeHeight = sf.ui.proTools.visibleTrackNames sf.ui.proTools.trackGetByName({ name: tracksToChangeHeight[0], makeVisible: true }).track.trackScrollToView(); var f = sf.ui.proTools.selectedTrack.frame; var popupMenu = sf.ui.proTools.selectedTrack.popupMenuOpenFromElement({ anchor:"TopLeft", relativePosition: { x: f.w - 10, y: 5 }, isOption: true, // isShift: true, }).popupMenu; popupMenu.menuClickPopupMenu({ menuPath: [size] });
- KKei Shiraishi @Kei_Shiraishi
This is so great! Is there a way to toggle all track size?
Chris Shaw @Chris_Shaw2025-04-11 16:43:16.893Z
I'm not sure exactly what you want.
Could you give me a step by step example of what you want to do?
- BIn reply tobriannaas⬆:@briannaas
With another Pro Tools update, I am once again asking for your support in making this macro functional again.
Chris Shaw @Chris_Shaw2024-07-05 21:59:35.160Z
Let me know if tis works:
var size = 'medium'; sf.ui.proTools.appActivate(); var tracksToChangeHeight = sf.ui.proTools.visibleTrackNames sf.ui.proTools.trackGetByName({ name: tracksToChangeHeight[0], makeVisible: true }).track.trackScrollToView(); var f = sf.ui.proTools.selectedTrack.frame; sf.keyboard.press({keys:"left"}) var popupMenu = sf.ui.proTools.selectedTrack.popupMenuOpenFromElement({ anchor:"TopLeft", relativePosition: { x: f.w - 10, y: 5 }, isOption: true, // isShift: true, }).popupMenu; popupMenu.menuClickPopupMenu({ menuPath: [size] });
- TTim Pennells @Tim_Pennells
This one's not working sadly :/ it can't find the popup menu.
Very frustrating how Avid manages to break these codes every update