-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pre-release 2.13.0.0 breaks script that used to work with 2.10.0.0 (zooming actions) #1395
Comments
I know there were some recent fixes to zooming code when it comes to envelopes (SWS/wol part of the code) so maybe that's where the bug happened? I think cfillion did these envelope fixes? Maybe he can get to the bottom of this? I mean, the script is simple, it simply saves track selection, selects new tracks, zooms to them (using SWS actions) and then restores track selection. The horizontal zoom part of the script works, it's the vertical zooming that seems to be affected by the recent changes (lines 388 to 454 of the script from the first post of this issue) |
Can you share duplication steps and details on the scroll position you're getting now vs before? At first glance that script appears to be working here with SWS 2.12.0 in REAPER 6.12 on macOS&Windows: https://i.imgur.com/KGlfu6X.gif (same with 2.10.0). |
Ah, sorry, it has something to do with cycle actions!!!! I use cycle action to wrap this script, this is the cycle action (so it reports proper toggle state as a toolbar button and also works in tandem with other zooming actions so they all respect each other toggle state): Can you try with this project (item and track selection are different at purpose) 2.10. result: |
Confirmed, this can be duplicated by running "SWS: Vertical zoom to selected tracks" while I'll see if there's a way to have REAPER refresh the height synchronously. Otherwise, I think the second best solution would be to make |
This is the script, it's called 'Zoom - Toggle full zoom to selected items, automation items and selected points in active envelope (time selection or full project if no selection)'
https://pastebin.com/JuX1baXA
When zooming to items, something gets wrong with scroll position. The script is using SWS actions to zoom selected tracks. I tried removing obvious things like PreventUIRefresh() but still no luck.
The text was updated successfully, but these errors were encountered: