obsws-python/examples/scene_rotate/__main__.py

20 lines
362 B
Python
Raw Normal View History

import time
2022-09-04 12:20:40 +01:00
import obsws_python as obs
def main():
resp = cl.get_scene_list()
scenes = reversed(tuple(di.get("sceneName") for di in resp.scenes))
2022-08-31 20:13:44 +01:00
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()