mirror of
https://github.com/onyx-and-iris/voicemeeter-api-python.git
synced 2026-04-07 16:03:30 +00:00
clean up some format strings
expand obs example
This commit is contained in:
@@ -11,23 +11,37 @@ from obswebsocket import events, obsws
|
||||
|
||||
def on_start():
|
||||
vm.strip[0].mute = True
|
||||
vm.strip[1].B1 = True
|
||||
vm.strip[2].B2 = True
|
||||
|
||||
|
||||
def on_brb():
|
||||
vm.strip[7].fadeto(0, 500)
|
||||
vm.bus[0].mute = True
|
||||
|
||||
|
||||
def on_end():
|
||||
vm.strip[0].mute = True
|
||||
vm.apply(
|
||||
{
|
||||
"strip-0": {"mute": True},
|
||||
"strip-1": {"mute": True, "B1": False},
|
||||
"strip-2": {"mute": True, "B1": False},
|
||||
"vban-in-0": {"on": False},
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
def on_live():
|
||||
vm.strip[0].mute = False
|
||||
vm.strip[7].fadeto(-6, 500)
|
||||
vm.strip[7].A3 = True
|
||||
vm.vban.instream[0].on = True
|
||||
|
||||
|
||||
def on_switch(message):
|
||||
scene = message.getSceneName()
|
||||
print(f"Switched to scene {scene}")
|
||||
|
||||
match scene:
|
||||
case "START":
|
||||
on_start()
|
||||
|
||||
Reference in New Issue
Block a user