当前位置: 首页>>代码示例>>Python>>正文


Python Red9_Meta.isMetaNode方法代码示例

本文整理汇总了Python中Red9.core.Red9_Meta.isMetaNode方法的典型用法代码示例。如果您正苦于以下问题:Python Red9_Meta.isMetaNode方法的具体用法?Python Red9_Meta.isMetaNode怎么用?Python Red9_Meta.isMetaNode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Red9.core.Red9_Meta的用法示例。


在下文中一共展示了Red9_Meta.isMetaNode方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: test_basicRigStructure

# 需要导入模块: from Red9.core import Red9_Meta [as 别名]
# 或者: from Red9.core.Red9_Meta import isMetaNode [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'
开发者ID:vitattoo,项目名称:Red9_StudioPack,代码行数:58,代码来源:Red9_MetaTests.py

示例2: test_isMetaNode

# 需要导入模块: from Red9.core import Red9_Meta [as 别名]
# 或者: from Red9.core.Red9_Meta import isMetaNode [as 别名]
 def test_isMetaNode(self):
     assert r9Meta.isMetaNode('MetaRig_Test')
     assert r9Meta.isMetaNode('MetaRig_Test', mTypes=['MetaRig'])
     assert r9Meta.isMetaNode('MetaRig_Test', mTypes='MetaRig')
     assert not r9Meta.isMetaNode('MetaRig_Test', mTypes='MonkeyBollox')
     assert not r9Meta.isMetaNode('MetaRig_Test', mTypes='MetaFacialRigSupport_Test')
     assert r9Meta.isMetaNode('MetaRig_Test', mTypes=[r9Meta.MetaRig])
     assert r9Meta.isMetaNode('MetaRig_Test', mTypes=r9Meta.MetaRig)
     cube1=cmds.ls(cmds.polyCube()[0],l=True)[0]
     assert not r9Meta.isMetaNode(cube1)
开发者ID:vitattoo,项目名称:Red9_StudioPack,代码行数:12,代码来源:Red9_MetaTests.py

示例3: test_metaRigHandlers

# 需要导入模块: from Red9.core import Red9_Meta [as 别名]
# 或者: from Red9.core.Red9_Meta import isMetaNode [as 别名]
 def test_metaRigHandlers(self):
     '''
     main metaRig handlers in the pose setups
     '''
     self.poseData.metaPose=False
     assert not self.poseData.metaRig
     self.poseData.setMetaRig('L_Wrist_Ctrl')
     assert r9Meta.isMetaNode(self.poseData.metaRig)
     assert self.poseData.metaPose==False
     self.poseData.metaPose=True
     assert self.poseData.settings.metaRig==True
开发者ID:Bumpybox,项目名称:Tapp,代码行数:13,代码来源:Red9_PoseTests.py


注:本文中的Red9.core.Red9_Meta.isMetaNode方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。