Lua script - help

Paulo Soares

New Member
I'm writing a mostly ready lua script that can be used as a replacement for the Shaderfilter plugin in a cross-platform way. I've already managed to use UI properties to control the script internal settings but I'm facing huge difficulties to change properties values during runtime in order to reflect programmatic changes in the settings.

Can anyone be kind enough to provide some help on this or point me to some example?
 

Paulo Soares

New Member
To clarify my previous request: I can read the value of 'f' in the slider with obs.obs_data_get_double(settings, 'f') but can't figure out the way to change it by code without user input.

Lua:
script.get_properties = function(settings)
  local props = obs.obs_properties_create()
  obs.obs_properties_add_float_slider(props, 'f', "Something", 0.0, 1.0, 0.01)
  return props
end
 
Top