-
Hello, I want to update a text source in OBS. I tried it like this, but it failed with a 204 response. self.obs.send(
param="SetSourceSettings",
data={
"inputName": "RunningTime",
"inputSettings": {"text": f"{minutes}:{seconds},{millis}"},
},
) How can I achieve this with obsws? Thanks in advance and kind regards |
Beta Was this translation helpful? Give feedback.
Answered by
aatikturk
Feb 2, 2025
Replies: 2 comments
-
Hi, you can do it with
import obsws_python as obs
cl = obs.ReqClient(host='localhost', port=4455, password='yourpassword', timeout=3)
text_input = 'mytextinput'
data = {'text': 'some new text here'}
cl.set_input_settings(text_input, data, True) If you use help function on In [5]: help(cl.set_input_settings)
Help on method set_input_settings in module obsws_python.reqs:
set_input_settings(name, settings, overlay) method of obsws_python.reqs.ReqClient instance
Sets the settings of an input.
:param name: Name of the input to set the settings of
:type name: str
:param settings: Object of settings to apply
:type settings: dict
:param overlay: True == apply the settings on top of existing ones, False == reset the input to its defaults, then apply settings.
:type overlay: bool Hope it helps, |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
onyx-and-iris
-
This works fine! Thank you! :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
you can do it with
set_input_settings
following below steps:mytextinput
.If you use help function on
set_input_settings
method you can see the parameter definition and types.