-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasic.py
More file actions
31 lines (28 loc) · 747 Bytes
/
Copy pathbasic.py
File metadata and controls
31 lines (28 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import readDMX
import sendsacn
import patching
run = True
waiting = False
readDMX.init()
# sendsacn.init()
extraPatch = True
print('Waiting for PhantomJester...')
try:
while run:
if waiting != readDMX.connected:
if readDMX.connected:
print('Connected to '+readDMX.desk+' v'+readDMX.version)
else:
print('Waiting for PhantomJester...')
waiting = readDMX.connected
if readDMX.connected:
dmx = readDMX.getDMX()
if extraPatch:
dmx = patching.patch(dmx)
# sendsacn.send(dmx)
else:
readDMX.init()
except KeyboardInterrupt:
print('Quitting...')
readDMX.quit()
# sendsacn.quit()