mirror of
https://github.com/onyx-and-iris/obsws-python.git
synced 2024-11-22 21:00:53 +00:00
20 lines
362 B
Python
20 lines
362 B
Python
import time
|
|
|
|
import obsws_python as obs
|
|
|
|
|
|
def main():
|
|
resp = cl.get_scene_list()
|
|
scenes = reversed(tuple(di.get("sceneName") for di in resp.scenes))
|
|
|
|
for scene in scenes:
|
|
print(f"Switching to scene {scene}")
|
|
cl.set_current_program_scene(scene)
|
|
time.sleep(0.5)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
cl = obs.ReqClient()
|
|
|
|
main()
|