No internet connection
  1. Home
  2. How to

How to select Color for Marker in Pro Tools

By Jeff Schmidt @Jeff_Schmidt
    2020-04-10 18:56:07.989Z2020-04-10 20:44:43.455Z

    I'm using this script to color a selected clip to Light 12, Drop a Marker at that clip titled "PUP" - but I can't figure out how to choose the same Light 12 Color for the Marker too.

    Any ideas?

    sf.ui.proTools.colorsShowWindow();
    
    sf.ui.proTools.colorsSelect({
        colorTarget: "ClipsInTracks",
        colorNumber: 12,
    });
    
    sf.keyboard.press({
        keys: "numpad enter",
    });
    
    sf.keyboard.type({
        text: "PUP",
    });
    
    sf.keyboard.press({
        keys: "return",
    });
    
    sf.ui.proTools.colorPaletteWindow.popupButtons.whoseTitle.is('ColorPaletteSelectorView').first.popupMenuSelect({
        menuPath: ["Markers"],
    });
    
    Solved in post #9, click to view
    • 15 replies
    1. Kitch Membery @Kitch2020-04-10 20:45:37.399Z

      Hi Jeff,

      I may be wrong... But unfortunatly I dont think you can change the color of markers in Pro Tools.

      1. JJeff Schmidt @Jeff_Schmidt
          2020-04-10 20:49:16.729Z

          Yeah - it's available in the menu on the color pallete window - the script I created gets to this point in the image -but I can't figure out how to select a specfic color in the next step - in my case "Light 12"

          1. Kitch Membery @Kitch2020-04-10 20:57:41.912Z

            That's great. You learn somthing new every day...

            I'll take a look.

            1. In reply toJeff_Schmidt:

              Exactly. However "Markers" can only be selected if "Always Display Marker Colors" is turned ON (this was a note for Kitch):

              1. Kitch Membery @Kitch2020-04-10 21:29:32.231Z

                I found it but had to look this up.... Good to know!

              2. In reply toJeff_Schmidt:

                Jeff - unfortunately I think the SoundFlow function for selecting colors doesn't support Marker colors at this time. It should be an easy fix, so I'm sure we can include this in 3.6

                1. JJeff Schmidt @Jeff_Schmidt
                    2020-04-10 21:12:46.283Z

                    Thanks Christian - much appreciated!

              3. In reply toJeff_Schmidt:
                Kitch Membery @Kitch2020-04-10 20:49:36.987Z

                BTW...

                Tthe best way to paste code is to put a line of three back ticks ```` , then the code, and then follwed by another line of 3 back ticks ```

                1. JJeff Schmidt @Jeff_Schmidt
                    2020-04-10 20:51:09.790Z

                    got it- thanks

                  • In reply toJeff_Schmidt:
                    Kitch Membery @Kitch2020-04-10 21:05:29.608Z

                    This should do it

                    //Activate Pro Tools
                    sf.ui.proTools.appActivateMainWindow();
                    
                    //Show Color Palette
                    sf.ui.proTools.colorsShowWindow();
                    
                    //Wait for color Palette
                    sf.ui.proTools.colorPaletteWindow.elementWaitFor();
                    
                    //Select "Markers" from the Popup menu
                    sf.ui.proTools.colorPaletteWindow.popupButtons.whoseTitle.is('ColorPaletteSelectorView').first.popupMenuSelect({
                        menuPath: ["Markers"],
                    });
                    
                    //Click the position of the desired color
                    sf.ui.proTools.colorPaletteWindow.mouseClickElement({
                        relativePosition: {"x":276,"y":60},
                    });
                    
                    
                    Reply1 LikeSolution
                    1. Kitch Membery @Kitch2020-04-10 21:07:26.332Z

                      And the macro looks like this

                      Hope that helps.

                      Rock on!

                      1. In reply toKitch:
                        JJeff Schmidt @Jeff_Schmidt
                          2020-04-10 21:12:09.940Z

                          Yup - that works - I just grabbed your last action and appended it to the flow I had and it worked! How do you figure out the X / Y poisitions for windows?

                          1. Kitch Membery @Kitch2020-04-10 21:21:33.500Z

                            Some buttones are not accessible by SoundFlow directly, so as a way to click them you should use the "Mouse Click Relative To UI Element" within a Macro.

                            The x,y coordinates are relative to the "Top Left" of the picked window (Including the header and top bar of the window.)

                            You can use "Command + Shift + 4" OSX snapshot keyboard shortcut to find the x,y coordinates and then press escape when you have the x,y value so not to fill yor desktop with snapshots.

                            Hope that helps
                            Kitch

                            1. JJeff Schmidt @Jeff_Schmidt
                                2020-04-10 21:27:06.299Z

                                Excellent - thank you for the tip!

                                1. Kitch Membery @Kitch2020-04-10 21:27:48.259Z

                                  My pleasure mate!