|
|
|
06-05-2019, 02:42 PM
|
#1
|
Human being with feelings
Join Date: May 2017
Posts: 325
|
Zooming to edit cursor (help scripting)
So.. I created a couple threads in other sections asking if it is possible to zoom horizontally to my mouse pointer with shortcut+mousewheel (ex: shift+mwheel) AND zoom horizontally to edit cursor with other hotkeys (T, R, for example).
Zero answers in all threads, so I decided to try to create a script (or someone to help me a lot), basically I would like to keep the option "Zoom horizontally" to my mouse cursor, and create 2 scripts to get my edit cursor position and zoom to it, is it possible? Thanks in advance!
|
|
|
06-06-2019, 09:40 PM
|
#3
|
Human being with feelings
Join Date: May 2017
Posts: 325
|
Thanks a lot! I looked for some Reascript documentation, but this one explains much better
|
|
|
06-11-2019, 12:38 PM
|
#4
|
Human being with feelings
Join Date: Jan 2012
Posts: 1,185
|
There is a preference for making the edit cursor the horizontal zooming centre for the zoom key commands. This still lets the zoom via mousewheel act with the mouse as zoom centre. Isn't that what you need - no scripts necessary!?
|
|
|
06-11-2019, 01:03 PM
|
#5
|
Human being with feelings
Join Date: May 2017
Posts: 325
|
Quote:
Originally Posted by Triode
There is a preference for making the edit cursor the horizontal zooming centre for the zoom key commands. This still lets the zoom via mousewheel act with the mouse as zoom centre. Isn't that what you need - no scripts necessary!?
|
Yeah, There is? I'm just aware of "Horizontal zoom center" in editing behavior. By the way, I gave up with the script I created because it doesnt work in midi editor, only in arrange view
|
|
|
06-11-2019, 01:19 PM
|
#6
|
Human being with feelings
Join Date: Jan 2012
Posts: 1,185
|
I think if you set horizontal zoom centre to "edit cursor" all the time and then set the mousewheel to zoom in horizontally it will zoom around the mouse and disregard the preference. I was using it like that today (although without a modifier on the mousewheel)
|
|
|
06-11-2019, 01:31 PM
|
#7
|
Human being with feelings
Join Date: May 2017
Posts: 325
|
Doesnt work for me, I use alt+mousewheel shortcut to "Zoom horizontally (midi cc relative/mousewheel) but it will center to edit cursor
|
|
|
06-11-2019, 01:49 PM
|
#8
|
Human being with feelings
Join Date: Jan 2012
Posts: 1,185
|
Ok I checked and I have it set with a macro on each:
For your zoom to edit cursor key command put "set Horizontal zoom center to Edit cursor" first (and then add "zoom in horizontal") in the same macro.
Same for zoom out.
Then add the edit zoom for the mousewheel zoom horizontally (MIDI CC relative/mousewheel) also in a macro
Works here. Let me know how it goes..
|
|
|
06-11-2019, 02:27 PM
|
#9
|
Human being with feelings
Join Date: May 2017
Posts: 325
|
Yeah that works! I created custom action for both zoom modes. I was concerned about performance, since it will be constant changing preferences in the background, but had no issues. Thanks again
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 08:53 PM.
|