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"],
});
- 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.
- JJeff Schmidt @Jeff_Schmidt
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"
Kitch Membery @Kitch2020-04-10 20:57:41.912Z
That's great. You learn somthing new every day...
I'll take a look.
- In reply toJeff_Schmidt⬆:
Christian Scheuer @chrscheuer2020-04-10 20:58:46.874Z
Exactly. However "Markers" can only be selected if "Always Display Marker Colors" is turned ON (this was a note for Kitch):
Kitch Membery @Kitch2020-04-10 21:29:32.231Z
I found it but had to look this up.... Good to know!
- In reply toJeff_Schmidt⬆:
Christian Scheuer @chrscheuer2020-04-10 21:00:15.109Z
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
- JJeff Schmidt @Jeff_Schmidt
Thanks Christian - much appreciated!
- 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 ```
- JJeff Schmidt @Jeff_Schmidt
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}, });
Kitch Membery @Kitch2020-04-10 21:07:26.332Z
And the macro looks like this
Hope that helps.
Rock on!
- In reply toKitch⬆:JJeff Schmidt @Jeff_Schmidt
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?
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- JJeff Schmidt @Jeff_Schmidt
Excellent - thank you for the tip!
Kitch Membery @Kitch2020-04-10 21:27:48.259Z
My pleasure mate!