mirror of
https://github.com/onyx-and-iris/obsws-python.git
synced 2024-11-23 05:10:53 +00:00
362ec22257
update tests accordingly
20 lines
353 B
Python
20 lines
353 B
Python
import time
|
|
|
|
import obsstudio_sdk as obs
|
|
|
|
|
|
def main():
|
|
resp = cl.get_scene_list()
|
|
scenes = reversed(tuple(di["sceneName"] for di in resp["scenes"]))
|
|
|
|
for sc in scenes:
|
|
print(f"Switching to scene {sc}")
|
|
cl.set_current_program_scene(sc)
|
|
time.sleep(0.5)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
cl = obs.ReqClient()
|
|
|
|
main()
|