OBS utilities
This commit is contained in:
parent
cf09e80e54
commit
e21c330099
10 changed files with 33 additions and 0 deletions
21
windows/obs/ResolutionUtils/Py/OBS.py
Normal file
21
windows/obs/ResolutionUtils/Py/OBS.py
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
from subprocess import Popen
|
||||
|
||||
|
||||
def on_event(event):
|
||||
if event == obspython.OBS_FRONTEND_EVENT_SCRIPTING_SHUTDOWN:
|
||||
proc = Popen(
|
||||
r".\Desktop.bat",
|
||||
cwd=r"TODO:\obs\ResolutionUtils",
|
||||
shell=True,
|
||||
)
|
||||
_ = proc.communicate()
|
||||
|
||||
|
||||
def script_load(settings):
|
||||
obspython.obs_frontend_add_event_callback(on_event)
|
||||
proc = Popen(
|
||||
r".\Recording.bat",
|
||||
cwd=r"TODO:\obs\ResolutionUtils",
|
||||
shell=True,
|
||||
)
|
||||
_ = proc.communicate()
|
||||
Loading…
Reference in a new issue