-
Hey everyone! even exchanging the "bool" with "string" and trying something like Does someone have an idea which property I have to manipulate with the "data_set" to get this to work? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
It is "looping" the setting name, not loop. PD: don't forget to release settings with |
Beta Was this translation helpful? Give feedback.
-
You should check the import obspython as obs
def get_settings(source_name):
source = obs.obs_get_source_by_name(source_name)
sourceSettings = obs.obs_source_get_settings(source)
newSettings = obs.obs_data_create()
obs.obs_data_set_obj(newSettings, "sourceSettings", sourceSettings)
obs.obs_source_release(source)
print(obs.obs_data_get_json(newSettings))
obs.obs_data_release(settings)
get_settings("source_example") Remember that settings are in json or shown by the script if you first change its value. By hand or by code (if you know its name previously). |
Beta Was this translation helpful? Give feedback.
It is "looping" the setting name, not loop.
PD: don't forget to release settings with
obs.obs_data_release(settings)
.