def saveFaceAsRig(self): """Function to save the entire Rig Graphics View scene out to an XML File""" xMLStructure = FaceGVCapture(self.view, self.messageLogger, self.dataProcessor,self.expressionCaptureProcessor) faceFileName = QtGui.QFileDialog.getSaveFileName(self, 'Save Happy Face File As...', 'faceFiles', filter = "Face XML files (*.xml)")[0] if faceFileName != "": self.faceSaveFile = faceFileName xMLStructure.setXMLFile(self.faceSaveFile) xMLStructure.store()
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
def saveFaceRig(self): """Function to save the entire Rig Graphics View scene out to an XML File""" xMLStructure = FaceGVCapture(self.view, self.messageLogger, self.dataProcessor, self.expressionCaptureProcessor) isValidSaveFile = False if self.faceSaveFile: # Check a Face File has been set and exists if os.path.isfile(self.faceSaveFile): isValidSaveFile = True if isValidSaveFile: xMLStructure.setXMLFile(self.faceSaveFile) xMLStructure.store() else: self.faceSaveFile = QtGui.QFileDialog.getSaveFileName(self, 'Save Happy Face File', 'faceFiles', filter = "Face XML files (*.xml)")[0] if self.faceSaveFile != "": xMLStructure.setXMLFile(self.faceSaveFile) xMLStructure.store()
def saveFaceRig(self): """Function to save the entire Rig Graphics View scene out to an XML File""" xMLStructure = FaceGVCapture(self.view, self.messageLogger, self.dataProcessor, self.expressionCaptureProcessor) isValidSaveFile = False if self.faceSaveFile: # Check a Face File has been set and exists if os.path.isfile(self.faceSaveFile): isValidSaveFile = True if isValidSaveFile: xMLStructure.setXMLFile(self.faceSaveFile) xMLStructure.store() else: self.faceSaveFile = QtGui.QFileDialog.getSaveFileName( self, 'Save Happy Face File', 'faceFiles', filter="Face XML files (*.xml)")[0] if self.faceSaveFile != "": xMLStructure.setXMLFile(self.faceSaveFile) xMLStructure.store()
def saveFaceAsRig(self): """Function to save the entire Rig Graphics View scene out to an XML File""" xMLStructure = FaceGVCapture(self.view, self.messageLogger, self.dataProcessor, self.expressionCaptureProcessor) faceFileName = QtGui.QFileDialog.getSaveFileName( self, 'Save Happy Face File As...', 'faceFiles', filter="Face XML files (*.xml)")[0] if faceFileName != "": self.faceSaveFile = faceFileName xMLStructure.setXMLFile(self.faceSaveFile) xMLStructure.store()
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
def saveFaceRig(self): """Function to save the entire Rig Graphics View scene out to an XML File""" xMLStructure = FaceGVCapture(self.view, self.messageLogger) xMLStructure.setXMLFile("faceFiles/test.xml") xMLStructure.store()
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()