Esempio n. 1
0
 def keyLeft_clicked(self):
     model = syn_uti.getModel(self)
     # i : num of fingers, j : finger length
     object_names = ["finger_L%s_fk%s_ctl"%(i,j) for i in range(4) for j in range(3)]
     thumb_names = ["thumb_L0_fk%s_ctl"%j for j in range(3)]
     object_names.extend(thumb_names)
     syn_uti.keyObj(model, object_names)
Esempio n. 2
0
    def mousePressEvent(self, event):

        model = syn_uti.getModel(self)
        channel = self.property("channel").toString()
        mouse_button = event.button()

        syn_uti.quickSel(model, channel, mouse_button)
Esempio n. 3
0
 def selRight_clicked(self):
     model = syn_uti.getModel(self)
     # i : num of fingers, j : finger length
     object_names = ["finger_R%s_fk%s_ctl"%(i,j) for i in range(4) for j in range(3)]
     thumb_names = ["thumb_R0_fk%s_ctl"%j for j in range(3)]
     object_names.extend(thumb_names)
     syn_uti.selectObj(model, object_names, None, None)
Esempio n. 4
0
    def mousePressEvent(self, event):

        model = syn_uti.getModel(self)
        object = str(self.property("object").toString()).split(",")
        mouse_button = event.button()
        key_modifier = event.modifiers()

        syn_uti.selectObj(model, object, mouse_button, key_modifier)
Esempio n. 5
0
    def mousePressEvent(self, event):

        model = syn_uti.getModel(self)
        object_name = str(self.property("Object"))
        attr_name = str(self.property("Attr"))
        mouse_button = event.button()

        syn_uti.toggleAttr(model, object_name, attr_name)
Esempio n. 6
0
 def selLeft_clicked(self):
     model = syn_uti.getModel(self)
     # i : num of fingers, j : finger length
     object_names = ["finger_L%s_fk%s_ctl"%(i,j) for i in range(4) for j in range(3)]
     thumb_names = ["thumb_L0_fk%s_ctl"%j for j in range(3)]
     object_names.extend(thumb_names)
     modifiers = QtWidgets.QApplication.keyboardModifiers()
     syn_uti.selectObj(model, object_names, None, modifiers)
Esempio n. 7
0
 def selRight_clicked(self):
     model = syn_uti.getModel(self)
     # i : num of fingers, j : finger length
     object_names = [
         "finger_R%s_fk%s_ctl" % (i, j) for i in range(4) for j in range(3)
     ]
     thumb_names = ["thumb_R0_fk%s_ctl" % j for j in range(3)]
     object_names.extend(thumb_names)
     syn_uti.selectObj(model, object_names, None, None)
Esempio n. 8
0
 def keyLeft_clicked(self):
     model = syn_uti.getModel(self)
     # i : num of fingers, j : finger length
     object_names = [
         "finger_L%s_fk%s_ctl" % (i, j) for i in range(4) for j in range(3)
     ]
     thumb_names = ["thumb_L0_fk%s_ctl" % j for j in range(3)]
     object_names.extend(thumb_names)
     syn_uti.keyObj(model, object_names)
Esempio n. 9
0
    def rectangleSelection(self,event, firstLoop):
        if firstLoop:
            key_modifier = event.modifiers()
        else:
            key_modifier = QtCore.Qt.ShiftModifier
        model = syn_uti.getModel(self)
        object = str(self.property("object")).split(",")

        mouse_button = event.button()
        syn_uti.selectObj(model, object, mouse_button, key_modifier)
Esempio n. 10
0
    def enterEvent(self, event):
        self.model = syn_uti.getModel(self)
        self.uihost_name = str(self.property("Object"))
        self.combo_attr = str(self.property("Attr"))
        self.ctl_name = str(self.property("ik_ctl"))
        if not self.currentText():
            list1 = syn_uti.getComboKeys( self.model, self.uihost_name, self.combo_attr)
            self.addItems(list1)

        self.setCurrentIndex(syn_uti.getComboIndex( self.model, self.uihost_name, self.combo_attr))
        self.firstUpdate = True 
Esempio n. 11
0
    def mousePressEvent(self, event):

        model = syn_uti.getModel(self)
        ikfk_attr = str(self.property("ikfk_attr"))
        uiHost_name = str(self.property("uiHost_name"))
        fk0 = str(self.property("fk0"))
        fk1 = str(self.property("fk1"))
        fk2 = str(self.property("fk2"))
        ik = str(self.property("ik"))
        upv = str(self.property("upv"))

        mouse_button = event.button()

        syn_uti.ikFkMatch(model, ikfk_attr, uiHost_name, fk0, fk1, fk2, ik, upv)
Esempio n. 12
0
 def keyAll_clicked(self):
     model = syn_uti.getModel(self)
     syn_uti.keyAll(model)
Esempio n. 13
0
 def selAll_clicked(self):
     model = syn_uti.getModel(self)
     syn_uti.selAll(model)
Esempio n. 14
0
 def keyAll_clicked(self):
     # type: () -> None
     model = syn_uti.getModel(self)
     syn_uti.keyAll(model)
Esempio n. 15
0
    def mousePressEvent(self, event):

        model = syn_uti.getModel(self)
        syn_uti.bakeMocap(model)
Esempio n. 16
0
    def mousePressEvent(self, event):

        model = syn_uti.getModel(self)
        mouse_button = event.button()

        syn_uti.bindPose(model)
Esempio n. 17
0
 def keyAll_clicked(self):
     model = syn_uti.getModel(self)
     syn_uti.keyAll(model)
Esempio n. 18
0
 def selAll_clicked(self):
     model = syn_uti.getModel(self)
     syn_uti.selAll(model)