Remember Current View
I would like to build a key to remeber My current view (Zoom, Visible tracks, Track Height ect.). I would like to then do other edits, but then return to looking at exctly where i am. I figured I should build a macro to make a marker with a particular number so I can recall it. figured maybe marker number 800.
I git this far, and was planning to add all the proper select buttons on the "Add marker" UI, but no luck even this far. Any advice please? Pasting what I have so far
Thanks

Linked from:
- Chris Shaw @Chris_Shaw2021-03-04 00:00:38.928Z
This isn't easily done with macros.
This script should do it:sf.app.launch({ path: "/Applications/Pro Tools.app", }); sf.ui.proTools.menuClick({ menuPath: ["Window", "Memory Locations"], targetValue: 'Enable', }); sf.ui.proTools.memoryLocationsWindow.popupButtons.whoseTitle.is("Memory Locations").first.popupMenuSelect({ menuPath: ["New Memory Location..."], }); const memLocationsDialog = sf.ui.proTools.newMemoryLocationDialog memLocationsDialog.elementWaitFor(); memLocationsDialog.checkBoxes.whoseTitle.is("Zoom Settings").first.checkboxSet({ targetValue: 'Enable' }); memLocationsDialog.checkBoxes.whoseTitle.is("Track Visibility").first.checkboxSet({ targetValue: 'Enable' }); memLocationsDialog.checkBoxes.whoseTitle.is("Track Heights").first.checkboxSet({ targetValue: 'Enable' }); memLocationsDialog.radioButtons.whoseTitle.is("None").first.elementClick(); memLocationsDialog.textFields.whoseTitle.is("").allItems[2].elementSetTextFieldWithAreaValue({ value: "800", useMouseKeyboard: true, }); memLocationsDialog.textFields.whoseTitle.is("").allItems[1].elementSetTextFieldWithAreaValue({ value: "View Reset", }); memLocationsDialog.buttons.whoseTitle.is("OK").first.elementClick();
- In reply toAudio_Remote⬆:Andrew Scheps @Andrew_Scheps
I've also published a package called Screen Layout Helper Functions that let's you do exactly that with memory locations and/or window configurations.
- AAudio Remote @Audio_Remote
Hi Andrew:
I have installed this pkg, but it does not seem to do anything. Am I missing something?Andrew Scheps @Andrew_Scheps
The package has scripts that you can integrate into your own scripts, it doesn't really do anything standalone. It's more of a programming resource.