def test_basic_file_cmds(self): print "Exporting all", os.path.join( self.temp, 'all.ma' ) expFile = pm.exportAll( os.path.join( self.temp, 'all.ma' ), preserveReferences=1, force=1) print "Importing" impFile = pm.importFile( expFile ) print "Exporting all" pm.exportAll( os.path.join( self.temp, 'all.ma' ), preserveReferences=1, force=1) print "Exporting animation" pm.exportAnim( os.path.join( self.temp, 'anim.ma' ), force=1) pm.select(pm.SCENE.persp) print "Exporting selected animation" pm.exportSelectedAnim( os.path.join( self.temp, 'selAnim.ma' ), force=1)
def test_basic_file_cmds(self): print "Exporting all", os.path.join( self.temp, 'all.ma' ) expFile = pm.exportAll( os.path.join( self.temp, 'all.ma' ), preserveReferences=1, force=1) print "Importing" pm.importFile( expFile ) print "Exporting all" pm.exportAll( os.path.join( self.temp, 'all.ma' ), preserveReferences=1, force=1) print "Exporting animation" pm.exportAnim( os.path.join( self.temp, 'anim.ma' ), force=1) pm.select(pm.SCENE.persp) print "Exporting selected animation" pm.exportSelectedAnim( os.path.join( self.temp, 'selAnim.ma' ), force=1)
def test_basic_file_cmds(self): print "Exporting all", os.path.join( self.temp, 'all.ma' ) expFile = pm.exportAll( os.path.join( self.temp, 'all.ma' ), preserveReferences=1, force=1) print "Importing" # if we don't do this newFile first, maya crashes... # BSPR-18231 Maya crashes on import after exporting with references pm.newFile(f=1) pm.importFile( expFile ) print "Exporting all" pm.exportAll( os.path.join( self.temp, 'all.ma' ), preserveReferences=1, force=1) print "Exporting animation" pm.exportAnim( os.path.join( self.temp, 'anim.ma' ), force=1) pm.select(pm.SCENE.persp) print "Exporting selected animation" pm.exportSelectedAnim( os.path.join( self.temp, 'selAnim.ma' ), force=1)
def test_basic_file_cmds(self): print "Exporting all", os.path.join(self.temp, 'all.ma') expFile = pm.exportAll(os.path.join(self.temp, 'all.ma'), preserveReferences=1, force=1) print "Importing" # if we don't do this newFile first, maya crashes... # BSPR-18231 Maya crashes on import after exporting with references pm.newFile(f=1) pm.importFile(expFile) print "Exporting all" pm.exportAll(os.path.join(self.temp, 'all.ma'), preserveReferences=1, force=1) print "Exporting animation" pm.exportAnim(os.path.join(self.temp, 'anim.ma'), force=1) pm.select(pm.SCENE.persp) print "Exporting selected animation" pm.exportSelectedAnim(os.path.join(self.temp, 'selAnim.ma'), force=1)