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

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 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.

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.

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.

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