list and scene implimentations
This commit is contained in:
parent
a16d531e3a
commit
2bd3fa30bd
|
@ -113,34 +113,49 @@ def _master_choose(self, ctx):
|
|||
return 1
|
||||
|
||||
|
||||
def _list_go(self, expr):
|
||||
print("Go List is a stub")
|
||||
return -1
|
||||
def _list_go(self, ctx):
|
||||
for i in ctx.targets:
|
||||
list = str(i)
|
||||
if ctx.number.value is not None:
|
||||
list += "." + str(ctx.number.value)
|
||||
print("Go on List " + list)
|
||||
self.server.osc.send_message("/hog/playback/go/0", list)
|
||||
return 1
|
||||
|
||||
|
||||
def _list_halt(self, expr):
|
||||
print("Halt List is a stub")
|
||||
return -1
|
||||
def _list_halt(self, ctx):
|
||||
for i in ctx.targets:
|
||||
print("Halting List " + str(i))
|
||||
self.server.osc.send_message("/hog/playback/halt/0", i)
|
||||
return 1
|
||||
|
||||
|
||||
def _list_release(self, expr):
|
||||
print("Release List is a stub")
|
||||
return -1
|
||||
def _list_release(self, ctx):
|
||||
for i in ctx.targets:
|
||||
print("Releasing List " + str(i))
|
||||
self.server.osc.send_message("/hog/playback/release/0", i)
|
||||
return 1
|
||||
|
||||
|
||||
def _scene_go(self, expr):
|
||||
print("Go Scene is a stub")
|
||||
return -1
|
||||
def _scene_go(self, ctx):
|
||||
for i in ctx.targets:
|
||||
print("Go on Scene " + str(i))
|
||||
self.server.osc.send_message("/hog/playback/go/1", i)
|
||||
return 1
|
||||
|
||||
|
||||
def _scene_halt(self, expr):
|
||||
print("Halt Scene is a stub")
|
||||
return -1
|
||||
def _scene_halt(self, ctx):
|
||||
for i in ctx.targets:
|
||||
print("Halt Scene " + str(i))
|
||||
self.server.osc.send_message("/hog/playback/halt/1", i)
|
||||
return 1
|
||||
|
||||
|
||||
def _scene_release(self, expr):
|
||||
print("Release Scene is a stub")
|
||||
return -1
|
||||
def _scene_release(self, ctx):
|
||||
for i in ctx.targets:
|
||||
print("Release Scene " + str(i))
|
||||
self.server.osc.send_message("/hog/playback/release/1", i)
|
||||
return 1
|
||||
|
||||
|
||||
command = {"GM": _master_go,
|
||||
|
|
Loading…
Reference in New Issue