Changeset - 304874a34934
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 12 years ago 2013-06-16 18:44:45
drewp@bigasterisk.com
support dropping an effect "uri" into the curve area
Ignore-this: 6c50a98847311607d7a87ede16b0543f
1 file changed with 12 insertions and 8 deletions:
0 comments (0 inline, 0 general)
bin/curvecalc
Show inline comments
 
@@ -134,14 +134,17 @@ class Main(object):
 
                    tripleFilter=(subUri, RDFS.label, None)) as current:
 
                subName = current.label(subUri)
 

	
 
            try:
 
                self.makeSubterm(subName, withCurve=True,
 
                                 sub=subUri,
 
                                 expr="%s(t)" % subName)
 
            except SubtermExists:
 
                # we're not making sure the expression/etc are
 
                # correct-- user mihgt need to fix things
 
                pass
 
            if '?' in subUri:
 
                subName = self.handleSubtermDrop(subUri)
 
            else:
 
                try:
 
                    self.makeSubterm(subName, withCurve=True,
 
                                     sub=subUri,
 
                                     expr="%s(t)" % subName)
 
                except SubtermExists:
 
                    # we're not making sure the expression/etc are
 
                    # correct-- user mihgt need to fix things
 
                    pass
 
            curveView = self.curvesetView.row(subName).curveView
 
            t = self.lastSeenInputTime # curveView.current_time() # new curve hasn't heard the time yet. this has gotten too messy- everyone just needs to be able to reach the time source
 
            print "time", t
 
@@ -169,6 +172,7 @@ class Main(object):
 
        for cmd, name in params:
 
            if cmd == 'curve':
 
                self.curveset.new_curve(name)
 
        return name
 

	
 
    def onNewCurve(self, *args):
 
        dialog = self.wtree.get_object("newCurve")
0 comments (0 inline, 0 general)