Title
Right click on selected track seems to be broken.
What do you expect to happen when you run the script/macro?
Script is supposed to recall specified track preset on selected track.
Are you seeing an error?
Could not open popup menu (Recall Track Preset on Selected Track: Line 7) Popup menu was not found Popup window was not found after waiting 2000 ms
What happens when you run this script?
Error occurs inconsistently regardless of preset. Sometimes works, sometimes throws the error. Happens regardless of if track list is visible or hidden.
How were you running this script?
I used a Stream Deck button
How important is this issue to you?
4
Details
{ "inputExpected": "Script is supposed to recall specified track preset on selected track.", "inputIsError": true, "inputError": "Could not open popup menu (Recall Track Preset on Selected Track: Line 7)\n Popup menu was not found\n Popup window was not found after waiting 2000 ms", "inputWhatHappens": "Error consistent regardless of specified track preset.", "inputHowRun": { "key": "-MpfwmPg-2Sb-HxHQAff", "title": "I used a Stream Deck button" }, "inputImportance": 4, "inputTitle": "Right click on selected track seems to be broken." }
Source
const { trackPresetPath } = event.props;
if (!sf.ui.proTools.isRunning) throw `Pro Tools is not running`;
sf.ui.proTools.appActivateMainWindow();
sf.ui.proTools.selectedTrack.titleButton.popupMenuSelect({
isRightClick: true,
menuPath: ['Recall Track Preset', ...trackPresetPath],
});
Links
User UID: lDvUsI3q25eEnzGuVMQVeHybMUm2
Feedback Key: sffeedback:lDvUsI3q25eEnzGuVMQVeHybMUm2:-NsVFIojGYcWKm4WYcl3
Feedback ZIP: hgSiL7KKeTwtkf6kk7IdvDbJSiPalc+9dtlwL1SQRzZO5ID1atnQtoEuNGXnPq6/7SNtixtGCVoAJC/4uhgHy2VLD/yhLXkz8BpK2l+dfR3whyydJSv/fLZaCROsXZN6z51QxQK/glnLdsvkV7m0OXkkf7rWg2OBTXH49wQ6xxDEVGp57ckoN3OAVEdEy6iBLhzrKqDfu1IPTy5NaoTysZ8Ot2WEC2cFXuWumMepILcFZ3mEntDbkBN+9HgNn6ExW7sBD863xyNZxCj+AUt2hck+Ml8sqbngD8loCb7o1j3k6g2TVF+qQYRLpGlXpAMnC6ykzYPbSYmJAjGwlLM3GLapFl/Hy/j0i4cAfwT0q78=
- Chad Wahlbrink @Chad2024-03-11 19:45:24.750Z
Hey @Jim_Schaefer5!
As @raphaelsepulveda points out in this thread - starting on PT 2024.3, a small offset is now required for any script that interacts with a track's title button right-click popup menu.
Add a
relativePosition
of{ x: 5, y: 5 }
to get your scripts back in working order, like so:const { trackPresetPath } = event.props; if (!sf.ui.proTools.isRunning) throw `Pro Tools is not running`; sf.ui.proTools.appActivateMainWindow(); sf.ui.proTools.selectedTrack.titleButton.popupMenuSelect({ isRightClick: true, relativePosition: {x:5, y:5}, // Required for 2024.3 but backwards compatible menuPath: ['Recall Track Preset', ...trackPresetPath], });
- SIn reply toJim_Schaefer5⬆:SoundFlow Bot @soundflowbot
This report was now added to the internal issue tracked by SoundFlow as SF-869
- SIn reply toJim_Schaefer5⬆:SoundFlow Bot @soundflowbot
Linked issue SF-869 updated: This issue should now be resolved in SoundFlow 5.7.1 which is available as a manual download from https://my.soundflow.org - We changed the behavior of popupMenuSelect ("Open & Select Item in Popup Menu") so that it simulates a mouse click in the center of the button, instead of in the top-left corner. This should ensure that buttons with non-clickable borders, like certain track-related buttons in recent versions of Pro Tools, will keep working without having to set up custom offsets.
- SIn reply toJim_Schaefer5⬆:SoundFlow Bot @soundflowbot
The linked internal issue SF-869 has been marked as Done