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)
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)
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)
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)
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)
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)
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)
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)
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)
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
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)
def keyAll_clicked(self): model = syn_uti.getModel(self) syn_uti.keyAll(model)
def selAll_clicked(self): model = syn_uti.getModel(self) syn_uti.selAll(model)
def keyAll_clicked(self): # type: () -> None model = syn_uti.getModel(self) syn_uti.keyAll(model)
def mousePressEvent(self, event): model = syn_uti.getModel(self) syn_uti.bakeMocap(model)
def mousePressEvent(self, event): model = syn_uti.getModel(self) mouse_button = event.button() syn_uti.bindPose(model)