MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / advss_set_variable_value

Function advss_set_variable_value

scripting/examples.py:448–461  ·  view source on GitHub ↗
(name, value)

Source from the content-addressed store, hash-verified

446# variable with a given name.
447# True is returned if the operation was successful.
448def advss_set_variable_value(name, value):
449 proc_handler = obs.obs_get_proc_handler()
450 data = obs.calldata_create()
451
452 obs.calldata_set_string(data, "name", name)
453 obs.calldata_set_string(data, "value", value)
454 obs.proc_handler_call(proc_handler, "advss_set_variable_value", data)
455
456 success = obs.calldata_bool(data, "success")
457 if success is False:
458 obs.script_log(obs.LOG_WARNING, f'failed to set value for variable "{name}"')
459
460 obs.calldata_destroy(data)
461 return success

Callers 1

variable_python_actionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected