vban-cmd-python/__main__.py

28 lines
654 B
Python
Raw Normal View History

2022-03-04 14:30:51 +00:00
import vbancmd
2022-02-25 14:37:23 +00:00
2022-03-04 14:30:51 +00:00
class ManyThings:
def __init__(self, vban):
self.vban = vban
def things(self):
# Set the mapping of the second input strip
self.vban.strip[1].A3 = True
print(f'Output A3 of Strip {self.vban.strip[1].label}: {self.vban.strip[1].A3}')
def other_things(self):
# Toggle mute for the leftmost output bus
self.vban.bus[0].mute = not self.vban.bus[0].mute
2022-02-25 14:37:23 +00:00
2022-03-04 14:30:51 +00:00
def main():
with vbancmd.connect(kind_id, ip=ip) as vban:
do = ManyThings(vban)
do.things()
do.other_things()
2022-02-25 14:37:23 +00:00
if __name__ == '__main__':
kind_id = 'potato'
2022-03-04 14:30:51 +00:00
ip = '<ip address>'
2022-02-25 15:17:05 +00:00
main()