View Single Post
Old 11-21-2019, 12:51 PM   #810
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 9,513
Default

Quote:
Originally Posted by mespotine View Post
Afaik, there's a file for that, which needs to be added and includes all functions-declarations.
There's already one included with SWS and Reaper:

reaper_python.py
sws_python.py
sws_python64.py

so I think, one like that would be needed for JS-extension too.
Somewhere in this thread, someone made such a file, but it's for an older version and I don't remember, which post it had...
This one is the latest I think (at least I haven't spotted any newer ones here):
https://stash.reaper.fm/v/36404/js_ReaScriptAPI.py

@juliansader
If you consider providing the Python function wrappers in the future, as mentioned in the related post they are quite straightforward to generate using the Perl scripts SWS is also using to generate them.

edit:
@Cedrik0s
Where to put that file and a simple Python test script can also be found in above post.

Last edited by nofish; 11-21-2019 at 03:00 PM.
nofish is offline   Reply With Quote