Quote:
Originally Posted by amagalma
Have you thought of returning the values as a string separated with commas? (Like GetUserInputs). Instead of using arrays. This way the new function would work for all languages
|
Good idea, but honestly I don't like dealing with strings so much.
Plus scripter would have to parse the returned strings first for further use, while now it's just converting the arrays to Lua tables which there's already an API function for.
The new JS extension also has functions taking a reaper.array e.g.
https://www.extremraym.com/cloud/rea...ditor_ArrayAll
and I think it's the same issue there (Lua only) so best would probably be if Justin makes them available for the other languages too at some point.
edit:
Hm.. looking closer, this native API function takes a reaper.array in Lua but is listed for all languages, so not sure, seems it does work for the other languages too.
https://www.extremraym.com/cloud/rea...ItemTake_Peaks