View Single Post
Old 10-30-2018, 05:38 AM   #8
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 8,458
Default

Quote:
Originally Posted by amagalma View Post
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 p**** 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

Last edited by nofish; 10-30-2018 at 06:04 AM.
nofish is offline   Reply With Quote