Dan39
New Member
Hello,
Is it possible to call config_open, config_set_string, etc. functions from util/config-file.h within an lua script? What I want to do is change the Recording Path and/or Filename Formatting dynamically, like reading text from a filesystem file and then using that text in the filename. The text would be written by my own external shell script, so it would be safe to use, I don't have to worry about bad user input.
I tried calling obslua.config_open but I get an error that it is nil. I am guessing because it is in the separate util/config-file.h file that would need to be included some how. I am not sure how or if that is possible in lua script though.
Thanks,
Dan
Is it possible to call config_open, config_set_string, etc. functions from util/config-file.h within an lua script? What I want to do is change the Recording Path and/or Filename Formatting dynamically, like reading text from a filesystem file and then using that text in the filename. The text would be written by my own external shell script, so it would be safe to use, I don't have to worry about bad user input.
I tried calling obslua.config_open but I get an error that it is nil. I am guessing because it is in the separate util/config-file.h file that would need to be included some how. I am not sure how or if that is possible in lua script though.
Thanks,
Dan