Python Web-socket.py

Sagura091

New Member
Hey I am trying to get TEXT GDI+ to change when I run my python script.

source_name = "yo" # Replace with the actual name of your OBS Text source
text_properties = {
"source": source_name,
"text": text,
"textFile": "",
"outline": True,
"outlineColor": "#000000",
"outlineSize": 2,
"color": "#FFFFFF",
"vertical": False,
"align": "center",
"bkColor": "#00000000",
"bkOpacity": 0,
"bkType": "none"
}
ws.call(requests.SetInputSettings(**text_properties))

this was my first attempt and everything seemed to work but it returned false.


the second was:

source_name = "TTS" # Replace with the actual name of your OBS Text source
text_properties = {"source": "", "text": text} # Properties to update the text content
ws.call(requests.SetTextGDIPlusProperties(**text_properties))

and that didn't work either. idk what's going on. can someone help?
 

Attachments

  • TTS.png
    TTS.png
    40.9 KB · Views: 119
Top