Ejemplo n.º 1
0
 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()
Ejemplo n.º 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
Ejemplo n.º 3
0
    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()
Ejemplo n.º 4
0
    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()
Ejemplo n.º 5
0
 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()
Ejemplo n.º 6
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
Ejemplo n.º 7
0
 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()
Ejemplo n.º 8
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()