コード例 #1
0
ファイル: __init__.py プロジェクト: Everzen/RigControls
 def openFaceRig(self):
     """Function to load in a stored XML file of face Rig Data"""
     xMLStructure = FaceGVCapture(self.view, self.messageLogger, self.dataProcessor, self.expressionCaptureProcessor)
     faceFileName = QtGui.QFileDialog.getOpenFileName(self, 'Open Happy Face File', 'faceFiles', filter = "Face XML files (*.xml)")[0]
     if faceFileName != "": # A Valid File has been selected from the File Diaglogue
         self.faceSaveFile = faceFileName
         xMLStructure.setXMLFile(faceFileName)
         xMLStructure.read()
     self.nodeLinksTableWidget.populate() #Redraw the nodelink data Table, so that all the data is updated to the new loaded faceRig
     self.skinTableWidget.populate() ##Redraw the skin data Table, so that all the data is updated to the new loaded faceRig
コード例 #2
0
 def openFaceRig(self):
     """Function to load in a stored XML file of face Rig Data"""
     xMLStructure = FaceGVCapture(self.view, self.messageLogger,
                                  self.dataProcessor,
                                  self.expressionCaptureProcessor)
     faceFileName = QtGui.QFileDialog.getOpenFileName(
         self,
         'Open Happy Face File',
         'faceFiles',
         filter="Face XML files (*.xml)")[0]
     if faceFileName != "":  # A Valid File has been selected from the File Diaglogue
         self.faceSaveFile = faceFileName
         xMLStructure.setXMLFile(faceFileName)
         xMLStructure.read()
     self.nodeLinksTableWidget.populate(
     )  #Redraw the nodelink data Table, so that all the data is updated to the new loaded faceRig
     self.skinTableWidget.populate(
     )  ##Redraw the skin data Table, so that all the data is updated to the new loaded faceRig
コード例 #3
0
 def openFaceRig(self):
     """Function to load in a stored XML file of face Rig Data"""
     xMLStructure = FaceGVCapture(self.view, self.messageLogger)
     xMLStructure.setXMLFile("faceFiles/test.xml")
     xMLStructure.read()