Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Feature Requests

Reply
 
Thread Tools Display Modes
Old 03-03-2021, 05:52 PM   #1
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,628
Default Video Processor: Preset, that write mouse-events into a gmem

It would be great, if there would be a native preset, that puts the mouseclick/doubleclick/drag/states, positions and modifiers into a gmem, that can be easily accessed by Lua.

That way, we could have draggeable ui-elements in the video-processor window, that can be controlled by Lua.

For instance, I could have a text, that I doubleclick on in the video-processor to open up a dialog to edit it.

So it's like:
1) I add the monitoring-videoprocessor-mouse-state-preset into the monitoringfx
2) I add a text-code into a videoprocessor of an item/track
3) I monitor, if the user doubleclicks on the letters of my text. The possible clickpositions of the text are monitored by the text-code-videoprocessor
4) A Lua-script monitors both, add 1+1 together and sees "Oh, the user doubleclicked on the video-processor, and the text-code tells me, that at this position, there's code.
So let's open GetUserInputs to enter a new text for this and after it was entered, I send it back to the text-code to update it on the video-processor."

So we have clickable text.

This idea could be used for other ui-elements in the video-processor as well, like draggeable shapes for bars or maybe even for scrubbing and such.
So the only thing I need to manage is the z-order of things, so I know, that I clicked the text, not the redbar underneath it that shall represent the background of the text.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada 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 11:49 PM.


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