Created
July 10, 2023 13:54
-
-
Save OhkuboSGMS/d228c6e8c5f20d2c96de0bd32e419c2c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import itertools | |
from time import sleep | |
# pip install obsws-python | |
import obsws_python as obs | |
OBS_PASSWORD = '<OBS-Password>' | |
TARGET_SOURCE_NAME = '<ソースに表示されているなまえ>' | |
obscl = obs.ReqClient(host='localhost', port=4455, password=OBS_PASSWORD) | |
# resp =obscl.set_input_settings('sub_text',{},True) | |
# このソースの情報を取得 | |
# get_xxxで情報を取得 | |
# set_xxxで情報を設定 | |
resp = obscl.get_input_settings('sub_text') | |
print(resp.attrs()) | |
print(resp) | |
for a in itertools.accumulate('君は強いファイターだ'): | |
print(a) | |
obscl.set_input_settings('sub_text', {'text': a}, True) | |
sleep(0.1) |
Author
OhkuboSGMS
commented
Jul 10, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment