Hi there! Can you help me to do this feature with Soundflow 3?
- Change height of selected tracks to one of the default presets. For example, "micro".
Maybe it would be useful to do this with combination of modifier with numbers... 1 for micro ... 7 for extreme, 0 for fit in window etc.
Thanks a lot for the support!
Linked from:
- Christian Scheuer @chrscheuer2019-09-27 06:17:20.858Z
Hi Stepan.
This script would give you the height "small" for the selected track:
var size = 'small'; var f = sf.ui.proTools.selectedTrack.frame; var popupMenu = sf.ui.proTools.selectedTrack.popupMenuOpenFromElement({ relativePosition: { x: f.w - 10, y: 5 }, }).popupMenu; popupMenu.menuClickPopupMenu({ menuPath: [size] });
I would recommend using the built in shortcuts for this though (cmd+scroll wheel to zoom in/out)
Stepan Sevastyanov @Stepan_Sevastyanov
Thanks, Christian!
The script works for first track of selected tracks. It seems that I'll wait for "for all slected tracks, do" function to improve this script in future.
Actually I havent used default shortcuts (cmd+scroll wheel to zoom in/out). I just gave it a try and it seems handy! I'll put it into my workflow.
Thanks a lot — you are so kind answering all those questions and helping optimising all these post-pro workflows, which sometimes can be really time-consuming... :)))
Christian Scheuer @chrscheuer2019-09-27 20:58:13.942Z
Thank you for the kind words :)
Here's a script that'll work for all selected tracks:var size = 'small'; var f = sf.ui.proTools.selectedTrack.frame; var popupMenu = sf.ui.proTools.selectedTrack.popupMenuOpenFromElement({ relativePosition: { x: f.w - 10, y: 5 }, isOption: true, isShift: true, }).popupMenu; popupMenu.menuClickPopupMenu({ menuPath: [size] });
- BBruno Tarrière @Bruno_Tarriere
Hello Christian,
That's great, I'm looking for a small adjustment that is not obvious.
Actually in the right size in my session is between small and medium. (which I adjust manually) But I don't know, as this size is called in protools, it's not in the context menu... Maybe small-medium ?
Christian Scheuer @chrscheuer2020-09-17 14:43:53.017Z
SoundFlow would have a hard time adjusting track heights by simulating mouse clicks/drags in a stable way - although you could certainly try. Generally, if you want SF to automate something, the first step is to list the manual actions you'd take.
How exactly do you adjust the size manually today? If it's with the mouse, I'd consider it hard to reach for a stable macro.
If you're using the keyboard (ctrl+alt+up/down) then you could just add that keyboard simulation event to the script.
- In reply tochrscheuer⬆:
Chris Shaw @Chris_Shaw2020-11-19 02:13:51.049Z
For some reason this doesn't work on Instrument tracks.
Is there a workaround? - In reply tochrscheuer⬆:
Kitch Membery @Kitch2021-05-05 19:12:40.708Z
Hi @Cesar_Sogbe,
Great to see you in the webinar today.
As requested... Here is a script Christian posted to set the track heights of all selected tracks.
Hope that helps.
Rock on!- CCesar Sogbe @Cesar_Sogbe
Thank You Kitch! You guys rock!!
- In reply toStepan_Sevastyanov⬆:Chris Shaw @Chris_Shaw2021-07-23 00:54:30.074Z
Just to throw in my two cents:
Here's a script that will cycle through three sizes (small, medium, large) each time you trigger the script.
If you want to add or use different sizes just modify thesizes
array by adding or deleting the sizes you prefer.I use this script a lot when I 'm editing vocals and automation
sf.ui.proTools.appActivate(); var sizes = ['small', 'medium', 'large']; if (globalState.csTrackSize == undefined) { globalState.csTrackSize = 1 }; globalState.csTrackSize++; if (globalState.csTrackSize >= sizes.length) { globalState.csTrackSize = 0 }; try { var f = sf.ui.proTools.selectedTrack.frame; var popupMenu = sf.ui.proTools.selectedTrack.popupMenuOpenFromElement({ relativePosition: { x: f.w - 10, y: 5 }, isOption: true, isShift: true, }).popupMenu; popupMenu.menuClickPopupMenu({ menuPath: [sizes[globalState.csTrackSize]] }); } catch (err) { };
- OOwen Granich-Young @Owen_Granich_Young
This is awesome and seemingly bomb proof Chris, thanks! So, I have a really dumb question that I know there's any easy answer to script, but I'm beyond NOOB to scripting so I have no idea WHERE in your script I'd put it. Where and how in this script would I put (HOLD DOWN OPTION) so that this script triggers on ALL TRACKS.
Thanks!
OwenChris Shaw @Chris_Shaw2021-08-10 21:40:25.455Z
Depends.
How are you triggering this script?
Stream Deck or Keyboard? If keyboard what key combination are you using to trigger it?Chris Shaw @Chris_Shaw2021-08-10 21:50:00.977Z
It's very easy if you're using a stream deck or surface:
just replaceisShift: true
With:
isShift: (event.keyboardState.hasAlt) ? false : true,
- OOwen Granich-Young @Owen_Granich_Young
Triggering on stream deck.
- OOwen Granich-Young @Owen_Granich_Young
Nifty! Thanks!
- In reply toChris_Shaw⬆:EEli Crews @Eli_Crews
This seems to have broken in PT 2024.3, any chance you know how to fix it? Running SF 5.7.5, thanks!
Christian Scheuer @chrscheuer2024-03-21 15:07:43.114Z
Hi Eli,
This has been addressed in a few other threads:
- EEli Crews @Eli_Crews
Great, thanks, sorry I missed it