Example #1
0
 def selectOutput(self):
     
     #print "funciona"
     singleFilter="json (*.json)"
     mayaPath=assemblyDataExport_v002.getMayaSceneFolder()
     jsonFile=cmds.fileDialog2(dir=mayaPath+"/shaders",fileFilter=singleFilter, dialogStyle=2)
     #print jsonFIle
     self.outputLineEdit.setText(mayaPath+jsonFile[0])
Example #2
0
 def saveConnections(self):
     
     mayaPath=assemblyDataExport_v002.getMayaSceneFolder()
     mayaPath=mayaPath[1]
     mayaPath=mayaPath.split(".")      
     with open('%s/%s.json'%(self.outputLineEdit.text(),mayaPath[0]+"_shader"), 'wb') as fp:
         json.dump(self.attributes, fp)
         
     #print self.attributes
     self.close()
Example #3
0
 def saveFiles(self):
     
     mayaPath=assemblyDataExport_v002.getMayaSceneFolder()
     mayaPath=mayaPath[1]
     mayaPath=mayaPath.split(".") 
     mel.eval("select -cl")
                     
     for shGr in self.materials:
         mel.eval("select -tgl -ne %s"%(shGr))
     cmds.file("%s/%s.ma" %(self.outputLineEdit.text(),mayaPath[0]+"_shader"), es=True, type="mayaAscii")
Example #4
0
 def pathOutput(self):
 	
 	mayaPath=assemblyDataExport_v002.getMayaSceneFolder()
 	#print mayaPath
 	self.outputLineEdit.setText(mayaPath[0]+"/shaders/")