Skip to content

Instantly share code, notes, and snippets.

@Garulf
Last active October 10, 2020 15:10
Show Gist options
  • Save Garulf/bc53ee9b6427e51fd1f5dfbf5740c726 to your computer and use it in GitHub Desktop.
Save Garulf/bc53ee9b6427e51fd1f5dfbf5740c726 to your computer and use it in GitHub Desktop.
import obspython as obs
def script_load(settings):
print('rec-nanoleaf script loaded')
obs.obs_frontend_add_event_callback(on_event)
def list_update(props, prop):
l = obs.obs_properties_get(props, "list")
obs.obs_property_list_add_string(l, "1", "1")
# Somehow tell obs this list is updated/save to memory?
def script_properties():
global props
props = obs.obs_properties_create()
s = obs.obs_properties_add_list(props, "list", "List",
obs.OBS_COMBO_TYPE_EDITABLE, obs.OBS_COMBO_FORMAT_STRING)
obs.obs_properties_add_button(props, "list_button", "list_button", list_update)
return props
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment