This commit is contained in:
oitsjustjose 2025-10-07 11:12:39 -05:00
commit 71c8ea7bbd
41 changed files with 375 additions and 284 deletions

Binary file not shown.

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,16 @@
from subprocess import Popen
from pathlib import Path
cwd = Path(__file__).parent.parent.resolve()
print(f"cwd={cwd}")
def on_event(event):
if event == obspython.OBS_FRONTEND_EVENT_SCRIPTING_SHUTDOWN:
proc = Popen(["MonitorSwitcher.exe", "-load:Normal.xml"], cwd=cwd, shell=True)
_ = proc.communicate()
def script_load(settings):
obspython.obs_frontend_add_event_callback(on_event)
proc = Popen(["MonitorSwitcher.exe", "-load:Recording.xml"], cwd=cwd, shell=True)
_ = proc.communicate()

Binary file not shown.

File diff suppressed because one or more lines are too long