import pymel.core as pm #import maya.standalone #maya.standalone.initialize(name='python') import maya.cmds as cmds import os #import Red9_Meta as r9Meta import Red9.core.Red9_Meta as r9Meta import Red9.core.Red9_CoreUtils as r9Core import Red9.core.Red9_PoseSaver as r9Pose import Red9.startup.setup as r9Setup r9Setup.start(Menu=False) red9MetaRigConfig=os.path.join(r9Setup.red9Presets(),'Red9_MetaRig_unitTest.cfg') def getPoseFolder(): return os.path.join(r9Setup.red9ModulePath(),'tests','testFiles','MetaRig_Poses') class Test_MetaRig(): ''' these are wrapped calls on MetaRig itself, note that compare goes via the skeletonDict in the internal metaRig compare calls ''' def setup(self): cmds.file(os.path.join(r9Setup.red9ModulePath(),'tests','testFiles','MetaRig_anim_jump.mb'),open=True,f=True) self.mRig = r9Meta.getMetaNodes(mTypes=r9Meta.MetaRig)[0] self.poseFolder = getPoseFolder()
import maya.cmds as cmds import os # import Red9_Meta as r9Meta import Red9.core.Red9_Meta as r9Meta import Red9.core.Red9_CoreUtils as r9Core import Red9.core.Red9_PoseSaver as r9Pose import Red9.startup.setup as r9Setup r9Setup.start(Menu=False) # force the upAxis, just in case r9Setup.mayaUpAxis('y') red9MetaRigConfig = os.path.join(r9Setup.red9Presets(), 'Red9_MetaRig_unitTest.cfg') def getPoseFolder(): return os.path.join(r9Setup.red9ModulePath(), 'tests', 'testFiles', 'MetaRig_Poses') class Test_MetaRig(): ''' these are wrapped calls on MetaRig itself, note that compare goes via the skeletonDict in the internal metaRig compare calls ''' def setup(self): cmds.file(os.path.join(r9Setup.red9ModulePath(), 'tests', 'testFiles', 'MetaRig_anim_jump.mb'), open=True, f=True) self.mRig = r9Meta.getMetaNodes(mTypes=r9Meta.MetaRig)[0] self.poseFolder = getPoseFolder() def teardown(self):
import pymel.core as pm #import maya.standalone #maya.standalone.initialize(name='python') import maya.cmds as cmds import os #import Red9_Meta as r9Meta import Red9.core.Red9_Meta as r9Meta import Red9.core.Red9_CoreUtils as r9Core import Red9.core.Red9_PoseSaver as r9Pose import Red9.startup.setup as r9Setup r9Setup.start(Menu=False) red9MetaRigConfig = os.path.join(r9Setup.red9Presets(), 'Red9_MetaRig_unitTest.cfg') def getPoseFolder(): return os.path.join(r9Setup.red9ModulePath(), 'tests', 'testFiles', 'MetaRig_Poses') class Test_MetaRig(): ''' these are wrapped calls on MetaRig itself, note that compare goes via the skeletonDict in the internal metaRig compare calls ''' def setup(self): cmds.file(os.path.join(r9Setup.red9ModulePath(), 'tests', 'testFiles',