本文整理汇总了Python中Red9.core.Red9_Meta.getConnectedMetaSystemRoot方法的典型用法代码示例。如果您正苦于以下问题:Python Red9_Meta.getConnectedMetaSystemRoot方法的具体用法?Python Red9_Meta.getConnectedMetaSystemRoot怎么用?Python Red9_Meta.getConnectedMetaSystemRoot使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Red9.core.Red9_Meta
的用法示例。
在下文中一共展示了Red9_Meta.getConnectedMetaSystemRoot方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_basicRigStructure
# 需要导入模块: from Red9.core import Red9_Meta [as 别名]
# 或者: from Red9.core.Red9_Meta import getConnectedMetaSystemRoot [as 别名]
def test_basicRigStructure(self):
mRig=r9Meta.getConnectedMetaSystemRoot('L_Wrist_Ctrl')
assert type(mRig)==r9Meta.MetaRig
assert mRig.mNode=='RED_Rig'
assert mRig.CTRL_Main[0]=='|World_Ctrl'
#test the Left Arm wires
assert type(mRig.L_ArmSystem)==r9Meta.MetaRigSubSystem
assert mRig.L_ArmSystem.mNode=='L_ArmSystem'
assert mRig.L_ArmSystem.systemType=='Arm'
assert mRig.L_ArmSystem.mirrorSide==1
assert mRig.L_ArmSystem.CTRL_L_Wrist[0]=='|World_Ctrl|L_Wrist_Ctrl'
assert mRig.L_ArmSystem.CTRL_L_Elbow[0]=='|World_Ctrl|COG__Ctrl|L_Elbow_Ctrl'
ctrl=r9Meta.MetaClass(mRig.L_ArmSystem.CTRL_L_Wrist[0])
assert ctrl.mirrorSide==1 #?????? consistency of attrs on node and metaSubsystems!!!!!!!
assert ctrl.mirrorIndex==1
#test the Right Leg wires
assert type(mRig.R_LegSystem)==r9Meta.MetaRigSubSystem
assert r9Meta.isMetaNode('R_LegSystem')
assert mRig.R_LegSystem.mNode=='R_LegSystem'
assert mRig.R_LegSystem.systemType=='Leg'
assert mRig.R_LegSystem.mirrorSide==2
assert mRig.R_LegSystem.CTRL_R_Foot[0]=='|World_Ctrl|R_Foot_grp|R_Foot_Ctrl'
assert mRig.R_LegSystem.CTRL_R_Knee[0]=='|World_Ctrl|R_Knee_Ctrl'
ctrl=r9Meta.MetaClass(mRig.R_LegSystem.CTRL_R_Foot[0])
assert ctrl.mirrorSide==2 #?????? consistency of attrs on node and metaSubsystems!!!!!!!
assert ctrl.mirrorIndex==4
#test the Left Leg wires
#:NOTE slight difference in the naming as we didn't pass in the attr when making the subSystem
assert type(mRig.L_Leg_System)==r9Meta.MetaRigSubSystem
assert r9Meta.isMetaNode('L_LegSystem')
assert mRig.L_Leg_System.mNode=='L_LegSystem'
assert mRig.L_Leg_System.systemType=='Leg'
assert mRig.L_Leg_System.mirrorSide==1
#test the Spine wires
assert type(mRig.SpineSystem)==r9Meta.MetaRigSubSystem
assert mRig.SpineSystem.mNode=='SpineSystem'
assert mRig.SpineSystem.systemType=='Spine'
assert mRig.SpineSystem.mirrorSide==0
assert mRig.SpineSystem.CTRL_Hips[0]=='|World_Ctrl|COG__Ctrl|Hips_Ctrl'
assert mRig.SpineSystem.CTRL_Chest[0]=='|World_Ctrl|COG__Ctrl|Chest_Ctrl'
ctrl=r9Meta.MetaClass(mRig.SpineSystem.CTRL_Chest[0])
assert ctrl.mirrorSide==0 #?????? consistency of attrs on node and metaSubsystems!!!!!!!
assert ctrl.mirrorIndex==4
#test the MetaRigSupport nodes
assert type(mRig.L_ArmSystem.L_ArmSupport)==r9Meta.MetaRigSupport
assert mRig.L_ArmSystem.L_ArmSupport.mNode=='L_ArmSupport'
assert mRig.L_ArmSystem.L_ArmSupport.SUP_IKHandle[0]=='|World_Ctrl|L_Wrist_Ctrl|ikHandle1'
assert mRig.SpineSystem.SpineSupport.SUP_NeckIK[0]=='|World_Ctrl|COG__Ctrl|Chest_Ctrl|Head_grp|Head_Ctrl|ikHandle3'
assert mRig.SpineSystem.SpineSupport.SUP_SpineIK[0]=='|World_Ctrl|COG__Ctrl|Chest_Ctrl|ikHandle4'
示例2: test_getParentSystems
# 需要导入模块: from Red9.core import Red9_Meta [as 别名]
# 或者: from Red9.core.Red9_Meta import getConnectedMetaSystemRoot [as 别名]
def test_getParentSystems(self):
assert r9Meta.getConnectedMetaSystemRoot('L_Fingers_System').mNode=='MetaRig'
assert r9Meta.getConnectedMetaSystemRoot('L_Toes_System').mNode=='MetaRig'
assert self.mRig.C_Spine_System.L_Arm_System.getParentMetaNode().mNodeID=='C_Spine_System'
assert self.mRig.C_Spine_System.L_Arm_System.L_Arm_Support.getParentMetaNode().mNodeID=='L_Arm_System'