Esempio n. 1
0
    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()

        # make our PoseData object with the unitTest config loaded
        filterNode = r9Core.FilterNode_Settings()
        filterNode.read(red9MetaRigConfig)
        self.poseData = r9Pose.PoseData(filterNode)
Esempio n. 2
0
    def setup(self):
        cmds.file(os.path.join(r9Setup.red9ModulePath(), 'tests', 'testFiles', 'MetaRig_anim_jump.mb'), open=True, f=True)
        self.rootNode = '|World_Ctrl'
        self.poseFolder = getPoseFolder()

        # make our PoseData object with the unitTest config loaded
        filterNode = r9Core.FilterNode_Settings()
        filterNode.nodeTypes = 'nurbsCurve'
        filterNode.incRoots = False
        filterNode.filterPriority = ['COG__Ctrl', 'Hips_Ctrl', 'Chest_Ctrl', 'R_Wrist_Ctrl', 'L_Wrist_Ctrl', 'L_Foot_Ctrl', 'R_Foot_Ctrl', 'L_Knee_Ctrl', 'R_Knee_Ctrl']
        self.poseData = r9Pose.PoseData(filterNode)
poseBuffer.poseSave(nodes,filePath,useFilter=False)
poseBuffer.poseSave(nodes)
poseBuffer.metaPose=False
poseBuffer.buildInternalPoseData(nodes)
poseBuffer.thumbnailRes
poseBuffer.useFilter = False
poseBuffer.useFilter

poseBuffer.metaPose
poseBuffer._buildInfoBlock()
poseBuffer._buildPoseDict(nodes)
poseBuffer.rootJnt = nodes[0]
poseBuffer._buildSkeletonData(poseBuffer.rootJnt)
poseBuffer._buildSkeletonData(poseBuffer.rootJnt)
poseBuffer.poseDict

from Red9.core import Red9_PoseSaver as r9Pose
reload(r9Pose)
r9Pose.log.setLevel(r9Pose.logging.DEBUG)

poseBuffer = r9Pose.PoseData()
poseBuffer.poseSave(nodes,filePath)
poseBuffer.metaPose=False

#Thumbnail -------------------------------------------------------------------
from Red9.core import Red9_General as r9General
reload(r9General)
filePath = 'J:/repos/morpheusrig2/morpheusRig_v2/presets/test.bmp'
r9General.thumbnailApiFromView(filePath, 230, 230, compression='bmp', modelPanel='modelPanel4')