First, I am very new to Lua, and interfacing into OBS. So I apologise if I've missed something either in Lua or the OBS API docs.
I am having a play with modifying BrowserImageSlideshow-2.0.2 Lua script to add some functionality. Specifically, I want to be able to user select a number of folders to get the images out of.
I've successfully managed to create three paths in the interface that I can browse to. And the code will extract the images names and I added the paths.
I used:
However in the interface I cannot directly edit or delete the text of the paths.
This is suboptimal, since sometimes we won't want all the paths filled, and sometimes pasting in a path may be best.
I had a hunt through the OBS API, specifically in this area:
docs.obsproject.com
But I couldn't find any properties that would lock a control for direct editing.
Very glad to be pointed to docs, or to an alternate method...
THanks
I am having a play with modifying BrowserImageSlideshow-2.0.2 Lua script to add some functionality. Specifically, I want to be able to user select a number of folders to get the images out of.
I've successfully managed to create three paths in the interface that I can browse to. And the code will extract the images names and I added the paths.
I used:
Lua:
props = obs.obs_properties_create()
obs.obs_properties_add_path(props, "dir1", "Image Dir 1",obs.OBS_PATH_DIRECTORY,"",nil )
obs.obs_properties_add_path(props, "dir2", "Image Dir 2",obs.OBS_PATH_DIRECTORY,"",nil )
obs.obs_properties_add_path(props, "dir3", "Image Dir 3",obs.OBS_PATH_DIRECTORY,"",nil )
However in the interface I cannot directly edit or delete the text of the paths.
This is suboptimal, since sometimes we won't want all the paths filled, and sometimes pasting in a path may be best.
I had a hunt through the OBS API, specifically in this area:
Properties API Reference (obs_properties_t) — OBS Studio 31.1.0 documentation
But I couldn't find any properties that would lock a control for direct editing.
Very glad to be pointed to docs, or to an alternate method...
THanks