def doMoveTo(self): ptx.begin() folder = self.tex_target.targetPath() if os.path.isdir(folder): textures = self.selectedTexs() for tex in textures: if tex.moveTo(folder): tex.setNewFolder(folder) ptx.end() self.analyse() return True
def doCopyTo(self): ptx.begin() folder = self.projectTxFolder() if os.path.isdir(folder): textures = self.selectedTexs() for tex in textures: if tex.copyTo(folder): tex.setNewFolder(folder) ptx.end() self.analyse() return True