View Single Post
Old 06-12-2019, 11:26 AM   #25
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default

Quote:
Originally Posted by Justin View Post
If I remember correctly, for bidirectional optional parameters you should use InOutOptional, so that it knows it's not a buffer.
This is interesting -- I haven't noticed the combined "InOut" suffix before in SWS or elsewhere. What is such bidirectional InOut or InOutOptional parameters used for?

In my previous post, however, I was referring only to input parameters.

In an earlier dev thread that nofish linked to above, he tried the OutOptional combination, but I'm not sure that this combination can still be valid after the changes of this release: If a parameter is named "Out", then if the Lua script doesn't supply the parameter, REAPER itself but supply a valid pointer that can be used to return a value. In contrast, if a parameter is named "Optional", then if the Lua script doesn't supply the parameter, REAPER passes a NULL.
juliansader is offline   Reply With Quote