Beispiel #1
0
 def sdmodelViewButtonGetPath(self, noeWnd, controlId, wParam, lParam):    
     
     dialog = noewinext.NoeUserOpenFolderDialog("Choose folder with model textures")
     path = dialog.getOpenFolderName()
     
     if path != None:
         self.texPathEditBox.setText(path)
                  
     return True 
    def buttonGetTexturePathOnClick(self, noeWnd, controlId, wParam, lParam):
        dialog = noewinext.NoeUserOpenFolderDialog(
            "Choose folder with texture files")
        folder = dialog.getOpenFolderName()

        if folder != None:
            self.texturePathEditBox.setText(folder)

        return True
Beispiel #3
0
    def buttonGetAnimationListOnClick(self, noeWnd, controlId, wParam, lParam):
        dir = self.bmfPathEditBox.getText().strip()
        if dir != "":
            if os.path.isdir(dir):
                self.bmfDir = os.path.isdir(self.bmfPathEditBox.getText())
            else:
                self.bmfDir = None
        else:
            dialog = noewinext.NoeUserOpenFolderDialog(
                "Choose folder with animation files")
            self.bmfDir = dialog.getOpenFolderName()

        #self.bmfDir = "F:\SteamLibrary\steamapps\common\Ghost Recon\Data\Motion"

        if self.bmfDir != None:
            self.bmfPathEditBox.setText(self.bmfDir)

            for file in os.listdir(self.bmfDir):
                if file.endswith(".bmf"):
                    self.animationListBox.addString(file)

        return True