View Single Post
Old 07-07-2015, 01:55 AM   #521
Jeffos
Mortal
 
Jeffos's Avatar
 
Join Date: Dec 2008
Location: France
Posts: 1,969
Default

Quote:
Originally Posted by Xenakios View Post
Hmm, I have been at times suggested to use functions exported by the SWS plugin... However, now that I actually tried it for the first time with Lua ReaScript, it looks like that doesn't actually work. For example, the following fails with " 'reaper.SNM_AddReceive' is unknown" :

Code:
local src=reaper.GetTrack(0,0)
local dest=reaper.GetTrack(0,1)
reaper.SNM_AddReceive(src, dest, -1)
Am I using the function wrong or is Lua support missing from the SWS plugin, version 2.7.0 from May 2015? (I briefly looked at the SWS source code repository and no results were found when searching for "lua" in the source code. So I guess that answers my question, maybe...)
Yes, Lua/EEL function export (and anything related to REAPER 5) is only available in SWS pre-releases at the moment, e.g. SWS v2.7.1.
The same goes with the code, checkout the "next" branch...
Jeffos is offline   Reply With Quote