I'm working on a Lua script that has a table that looks like:
That data array of mode_options needs to be assigned to a obs_data_array_t
I tried:
and got the error:
First, I am unsure what obs_data_array_t actually is. What kind of array is it?
I appreciate that the table type supports a number of different types of array.
Sooo... what is obs_data_array_t expecting? The OBS API docs have zero information about that.
Now, I may of course be ignorant of a base type of some sort. So if I need to read elsewhere, please just ping me a URL.
Note that we want all the data contained in the slideSettings to be JSON compatible in order to export an import to JSON files.
Code:
local mode_options = {"Random Order", "Alphabetical Order", "Alphabetical Order, start on random", "Alphanumeric","Modified Order"}
That data array of mode_options needs to be assigned to a obs_data_array_t
I tried:
Lua:
obs.obs_data_set_array(slideSettings,"mode_options",mode_options)
Lua:
Error in obs_data_set_array (arg 3), expected 'obs_data_array_t *' got 'table'
First, I am unsure what obs_data_array_t actually is. What kind of array is it?
I appreciate that the table type supports a number of different types of array.
Sooo... what is obs_data_array_t expecting? The OBS API docs have zero information about that.
Now, I may of course be ignorant of a base type of some sort. So if I need to read elsewhere, please just ping me a URL.
Note that we want all the data contained in the slideSettings to be JSON compatible in order to export an import to JSON files.