Old 09-18-2016, 08:40 AM   #1
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,674
Default Q: pass data between scripts

I would like to get some info from an oscii-bot script into a ReaScript (.lua, .eel or even a JS FX). And, perhaps, back in the other direction.

How can I do that? Are there any Actions that can be used? I tried using gmem[] but that did not work for me.

Why? I am looking for a way to display some status info in Reaper based on what I do on the Control Surface. For example, controller mode, last changed element, change value. A "head-up display" for the controller, if you like.

==================
Some oscii-bot scripts use their own graphics window. Docking that into Reaper or pinning it on top could be OK.
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar is offline   Reply With Quote
Old 09-19-2016, 06:07 AM   #2
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

Quote:
Originally Posted by DarkStar View Post
I would like to get some info from an oscii-bot script into a ReaScript (.lua, .eel or even a JS FX). And, perhaps, back in the other direction.

How can I do that? Are there any Actions that can be used? I tried using gmem[] but that did not work for me.

Why? I am looking for a way to display some status info in Reaper based on what I do on the Control Surface. For example, controller mode, last changed element, change value. A "head-up display" for the controller, if you like.

==================
Some oscii-bot scripts use their own graphics window. Docking that into Reaper or pinning it on top could be OK.
I don't think any of that is possible at the moment. OsciiBot and Reaper are separate processes, so something like gmem isn't going to work. (The "global" in gmem means global memory within a single process, not global memory on the whole operating system.)
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
Xenakios is offline   Reply With Quote
Old 09-19-2016, 07:16 AM   #3
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,674
Default

OK, thank you.

I tried gmem as (I thought that) I had read that gmem was memory shared by all scripts and I had presumed that as oscii-bot was used by an OSC Control Surface in Reaper then the gmem memory space would be shared wit by the oscii-bot, lua, EEL and JS FX scripts.
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar is offline   Reply With Quote
Old 09-19-2016, 08:53 AM   #4
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

Quote:
Originally Posted by DarkStar View Post
OK, thank you.

I tried gmem as (I thought that) I had read that gmem was memory shared by all scripts
Shared memory between script instances on the same scripting engine within the same process. For example while ReaScript does run Eel code, it does not share the scripting engine with JesuSonic, so they don't share the memory. (Technically since they are within the same process, they could share memory but that has not been implemented by Cockos and probably so for good reasons.)
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
Xenakios 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 07:14 PM.


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