Done API: get_action_context_osc-function for getting sent osc-message
get_action_context allows us getting MIDI-values(like velocity) so we know, with which velocity MIDI was sent to the script.
I would propose a similar thing for OSC, where I could get the actual OSC-message sent to the ReaScript via a dedicated function reaper.get_action_context_osc()
This way, we could have different OSC-messages sent to a ReaScript and the script reacts to the different messages differently.
So it's possible to have different use-case-contexts for one script.
It would also be cool, if it's possible to set the val-returnvalue of get_action_context somehow via OSC.
It's possible with the OscLocalMessageToHost-function but I don't know, if there's any other way to set it via other OSC-messages as well.
This way, we could send a message like "Ultraschall/DeleteMarker/(optional XXX)" and have the (optional XXX) being the marker-number to delete.
Last edited by Meo-Ada Mespotine; 09-24-2023 at 05:44 AM.
|