View Single Post
Old 08-08-2019, 05:47 AM   #3
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

GetSubProjectFromSource seems to be returning nil, at least with Lua ReaScript, so it's either buggy or it needs to be used in some non-obvious way.

Functions taking in a ReaProject are not going to work if the ReaProject is nil or the functions end up using the currently active project tab.

GetMediaSourceFileName(src, "") does return the file name of the .rpp file, though. (Not sure if that's useful for you.)
__________________
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