Go Back   Cockos Incorporated Forums > REAPER Forums > ReaScript, JSFX, REAPER Plug-in Extensions, Developer Forum

Reply
 
Thread Tools Display Modes
Old 06-12-2021, 12:43 PM   #1
deeb
Human being with feelings
 
deeb's Avatar
 
Join Date: Feb 2017
Posts: 4,812
Default Is it possible to get in a JSFX per example: selected track name?

I would like to make some decisions on the JSFX based on some information in reaper. Is there a place holder which we can set up some info with Lua which JSFX can read from?

Per example: How to get in JSFX selected track name

Thank you!
__________________
🙏🏻
deeb is offline   Reply With Quote
Old 06-12-2021, 12:46 PM   #2
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

Gmem is the way to go.

Have a look at how video sample peeker does it.
__________________
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
Old 06-12-2021, 12:51 PM   #3
deeb
Human being with feelings
 
deeb's Avatar
 
Join Date: Feb 2017
Posts: 4,812
Default

fast!
I see, we have this sets and gets to work with. interesting!
Lua: reaper.gmem_attach(sharedMemoryName)
Lua: reaper.gmem_read(index)
Lua: reaper.gmem_write(index,value)

Will try to understand them tomorrow. Thank you !

Edit: thank you for the second hint
__________________
🙏🏻
deeb 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:49 AM.


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