Changeset - 634e8a3ebd0a
[Not reviewed]
default
0 2 0
drewp@bigasterisk.com - 13 years ago 2012-06-16 01:33:36
drewp@bigasterisk.com
when you drag a sub into CC and it makes a new fade, leave both points in the fade selected
Ignore-this: e001a167b42b7c5471a0b2f240b2d12d
2 files changed with 8 insertions and 5 deletions:
0 comments (0 inline, 0 general)
bin/curvecalc
Show inline comments
 
@@ -99,8 +99,8 @@ class Main(object):
 
        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
 
        curveView.add_point((t - .5, 0))
 
        curveView.add_point((t, 1))
 
        curveView.add_points([(t - .5, 0),
 
                              (t, 1)])
 
            
 

	
 
    def onNewCurve(self, *args):
light9/curvecalc/curveview.py
Show inline comments
 
@@ -837,10 +837,13 @@ class Curveview(object):
 
        y = self.curve.eval(x)
 
        self.add_point((x, y))
 

	
 
    def add_points(self, pts):
 
        idxs = [self.curve.insert_pt(p) for p in pts]
 
        self.update_curve()
 
        self.select_indices(idxs)
 
        
 
    def add_point(self, p):
 
        i = self.curve.insert_pt(p)
 
        self.update_curve()
 
        self.select_indices([i])
 
        self.add_points([p])
 

	
 
    def add_marker(self, p):
 
        self.markers.insert_pt(p)
0 comments (0 inline, 0 general)