obsws-python/examples/scene_rotate/__main__.py
onyx-and-iris 20851c3880 request and event data now returned as dataclasses
unit tests updated accordingly
2022-07-27 22:44:40 +01:00

20 lines
354 B
Python

import time
import obsstudio_sdk as obs
def main():
resp = cl.get_scene_list()
scenes = reversed(tuple(di.get("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()