コード例 #1
0
ファイル: __init__.py プロジェクト: Everzen/RigControls
 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()
コード例 #2
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
コード例 #3
0
ファイル: __init__.py プロジェクト: Everzen/RigControls
    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()
コード例 #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()
コード例 #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()
コード例 #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
コード例 #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()
コード例 #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()