Mercurial > code > home > repos > light9
comparison light8/subediting.py @ 42:5e4fb4ac2d18
corrected Patch's error behavior and subediting's catching behavior
author | drewp |
---|---|
date | Sun, 07 Jul 2002 12:24:01 +0000 |
parents | 02151923be45 |
children | 6540879e336e |
comparison
equal
deleted
inserted
replaced
41:02151923be45 | 42:5e4fb4ac2d18 |
---|---|
36 return | 36 return |
37 | 37 |
38 self.startlevels = self.sub.getlevels() | 38 self.startlevels = self.sub.getlevels() |
39 | 39 |
40 def getcurrentlevel(self,lightname): | 40 def getcurrentlevel(self,lightname): |
41 print "resolve",lightname | |
42 ch = get_dmx_channel(lightname) | |
43 try: | 41 try: |
44 ch = get_dmx_channel(lightname) | 42 ch = get_dmx_channel(lightname) |
45 except ValueError: | 43 except ValueError: |
46 return None | 44 return None |
47 print "resolved ch",ch | |
48 return self.currentoutputlevels[ch] | 45 return self.currentoutputlevels[ch] |
49 | 46 |
50 def levelchange(self,lightnames,delta): | 47 def levelchange(self,lightnames,delta): |
51 """stage sends this message with its light names and a delta | 48 """stage sends this message with its light names and a delta |
52 0..1 measured from the last startlevelchange call. this method is | 49 0..1 measured from the last startlevelchange call. this method is |