Old 12-01-2019, 05:51 AM   #1
Vagelis
Human being with feelings
 
Join Date: Oct 2017
Location: Larisa, Greece
Posts: 448
Default Q: Is it possible to load mousemaps with a script?

I would love to be able to load different mousemaps that i've saved with actions, is it possible with script?
Vagelis is offline   Reply With Quote
Old 12-05-2019, 09:41 AM   #2
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 1,690
Default

What do you mean with mousemaps? Mouse-mappings? Like which mousemodifier is set to which action?

If yes, then yes, you can code that. It's fiddly but possible.
__________________
Ultraschall-API - a Lua-functions-library4Reaper: https://forum.cockos.com/showthread....98#post2067798
Reaper Internals - Developerdocs4Reaper: https://forum.cockos.com/showthread.php?t=207635
mespotine is offline   Reply With Quote
Old 12-05-2019, 11:04 AM   #3
Vagelis
Human being with feelings
 
Join Date: Oct 2017
Location: Larisa, Greece
Posts: 448
Default

Oh this is exciting if it is possible. What I meant was that since we can save modifiers for all contexts from the mouse modifiers import/export menu, to be able to load the presets-mouse maps that we saved with a script.

This would be very useful if we want to have different mouse actions on different context without using the cycle action because I made a lot of cycle actions that are changing actions on different context but in order to use if and, else etc.. one must choose a default modifier with toggle state. And it’s not possible to change actions for e.g left drag ctrl,alt etc. other than the default mouse modifier.
While loading whole mouse mappings with action would be better, because it would be possible to change the behavior for any modifier(left drag shift,ctrl,alt etc.) and not only the default.
Vagelis is offline   Reply With Quote
Old 12-05-2019, 12:35 PM   #4
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 1,690
Default

Ok, check out these functions:

https://mespotin.uber.space/Ultrasch...tMouseModifier

https://mespotin.uber.space/Ultrasch...tMouseModifier


You may need my docs about mouse-modifiers, as some of the parameters of these functions use the information you can find there:
https://mespotin.uber.space/Ultrasch...aper-mouse.ini

I haven't toyed around with them that much, so that's probably all I can say about them.
__________________
Ultraschall-API - a Lua-functions-library4Reaper: https://forum.cockos.com/showthread....98#post2067798
Reaper Internals - Developerdocs4Reaper: https://forum.cockos.com/showthread.php?t=207635
mespotine is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:19 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.