No internet connection
  1. Home
  2. How to

Remember Current View

By Audio Remote @Audio_Remote
    2021-03-03 01:41:46.202Z

    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

    • 4 replies
    1. 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();
      
      
      
      
      1. In reply toAudio_Remote:
        Andrew Scheps @Andrew_Scheps
          2021-03-04 00:25:34.919Z

          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.

          1. AAudio Remote @Audio_Remote
              2022-01-04 01:52:40.986Z

              Hi Andrew:
              I have installed this pkg, but it does not seem to do anything. Am I missing something?

              1. Andrew Scheps @Andrew_Scheps
                  2022-01-04 10:45:18.138Z

                  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.