Toolbar Option menu button
Hi everyone,
I've updated PT today and as expected, some scripts are acting up.
I have a script which gathers the pro tools view options, and it doesn't seem to find the popupmenu window for the toolbar.
Here is how it's called in my script
const popupMenuWin = sf.ui.proTools.windows.whoseTitle.is("Menu 19 items, Zoom Controls").first;
Is there another way to call it to solve the issue?
Thank you!
- Chris Shaw @Chris_Shaw2024-06-21 16:24:26.848Z
Which window are you referring to in that line of code?
- In reply toThomas_Gloor⬆:Chris Shaw @Chris_Shaw2024-06-21 16:33:25.321Z
Never mind, I found it. It's the top right popup in the edit window for views.
This should be compatible with 2024.6 and earlier:
const popupMenuWin = sf.ui.proTools.windows.whoseTitle.contains("Zoom Controls").first
- TThomas Gloor @Thomas_Gloor
And that did the trick.
Thank you very much!
- In reply toChris_Shaw⬆:TThomas Gloor @Thomas_Gloor
I’ll post my script on the forum.
It basically takes all display settings and stores them into a JSON and another script recalls the settings.
Waiting to add a way of recalling different settings,
Like the preference manager app!
Like one for mixing, editing, recording…Chris Shaw @Chris_Shaw2024-06-22 13:20:01.140Z
Storing and recalling different settings is relatively easy.
- TThomas Gloor @Thomas_Gloor
I know!
I just never took the time to do it! - In reply toChris_Shaw⬆:TThomas Gloor @Thomas_Gloor
Would you go for different keyboard modifiers to pick presets? Or do you have another idea?
I don’t like lists, as I prefer to have an automatic default.
A keyboard modifier could call a list though…Chris Shaw @Chris_Shaw2024-06-22 18:17:35.890Z
Personally I'd use a searchable list via:
sf.interaction.popupSearch()
.
The popup search is really powerful - you only need to type a couple of letters to get results.
Another option would be to use a SD button / keyboard trigger to call your most used preset and have a secondary modifier for the same trigger / button that would call up a searchable list for lesser used presets.
If you're not storing a ton of presets you could prepend each preset name with a single or double digit number so searching the list / selecting a preset would be easier- TThomas Gloor @Thomas_Gloor
Oh! Good idea about “pop up search”
I was thinking about the one that display list items (the name eludes me now).Thank you for your input Chris!