Lua attempt : the following code works...
Code:
function gTheme()
local lThemePath = reaper.GetLastColorThemeFile()
reaper.ShowConsoleMsg("Theme info :".."\n"..lThemePath)
end
gTheme()
I get this, which is what was expected :
Theme info :
F:\Reaper5_Portable\ColorThemes\EyssinaFM.ReaperTh eme
The following code doesn't...
Code:
function gTheme()
local lThemePath, lThemeName = reaper.BR_GetCurrentTheme()
reaper.ShowConsoleMsg("Theme info :".."\n"..lThemePath.."\n"..lThemeName)
end
gTheme()
I just get this :
Theme info :
The problem is that I want only the name of the current theme, without path or extension, which is exactly what the
BR_GetCurrentTheme function is supposed to provide, as a second return string. The 'ReaScript documentation' states this :
Lua: string themePathOut retval, string themeNameOut reaper.BR_GetCurrentTheme()
...
[BR] Get current theme information. themePathOut is set to full theme path and themeNameOut is set to theme name excluding any path info and extension
So :
1) What am I doing wrong ?
2) What does 'retval' means, actually ?
3) Additionaly, is there any actual examples of using this kind of functions somewhere as, even using this documentation, I'm not still sure about how to use the parameters call (again, the 'retval' one...) ?
Thanks for any help...
EDIT : I have the SWS extensions 2.8.3 installed and working, just in case...