Skip to content

Can you change values of certain sources (like Text GDI+) with obsws-python? #69

Answered by aatikturk
ErezCodes asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

That's possible using ReqClient class.

For initial connection, (from the example in README)

>>>import obsws_python as obs

# pass conn info if not in config.toml
>>>cl = obs.ReqClient(host='localhost', port=4455, password='mystrongpass', timeout=3)

Now you have a client to make requests to OBS websocket.

  • First you need the settings of your input (for your case, text-input)
    Assume name of the text input is test_string. To get the settings
>>> resp = cl.get_input_settings("test_string")

# to access the settings inside the resp use  input_settings attribute

>>>print(resp.input_settings)

{'text': 'hello world'}

Now you know what input settings look like. So you can use this as a temp…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by onyx-and-iris
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #33 on July 12, 2025 01:21.