Changeset - 5e4fb4ac2d18
[Not reviewed]
default
0 2 0
drewp - 22 years ago 2002-07-07 12:24:01

corrected Patch's error behavior and subediting's catching behavior
2 files changed with 1 insertions and 4 deletions:
0 comments (0 inline, 0 general)
light8/Patch.py
Show inline comments
 
@@ -8,7 +8,7 @@ def get_dmx_channel(name):
 
        i = int(name)
 
        return i
 
    except ValueError:
 
        raise "Invalid channel name:", name
 
        raise ValueError("Invalid channel name: %s" % name)
 

	
 
def get_channel_name(dmxnum):
 
    try:
light8/subediting.py
Show inline comments
 
@@ -38,13 +38,10 @@ class Subediting:
 
        self.startlevels = self.sub.getlevels()
 

	
 
    def getcurrentlevel(self,lightname):
 
        print "resolve",lightname
 
        ch = get_dmx_channel(lightname)
 
        try:
 
            ch = get_dmx_channel(lightname)
 
        except ValueError:
 
            return None
 
        print "resolved ch",ch
 
        return self.currentoutputlevels[ch]
 

	
 
    def levelchange(self,lightnames,delta):
0 comments (0 inline, 0 general)