本文整理汇总了Python中Red9.core.Red9_Meta.registerMClassInheritanceMapping方法的典型用法代码示例。如果您正苦于以下问题:Python Red9_Meta.registerMClassInheritanceMapping方法的具体用法?Python Red9_Meta.registerMClassInheritanceMapping怎么用?Python Red9_Meta.registerMClassInheritanceMapping使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Red9.core.Red9_Meta
的用法示例。
在下文中一共展示了Red9_Meta.registerMClassInheritanceMapping方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __bindData__
# 需要导入模块: from Red9.core import Red9_Meta [as 别名]
# 或者: from Red9.core.Red9_Meta import registerMClassInheritanceMapping [as 别名]
def __bindData__(self):
self.addAttr('myRigType','')
self.addAttr('myFloat', attrType='float', min=0, max=5)
self.addAttr('myEnum', enumName='A:B:D:E:F', attrType='enum')
def getChildren(self, walk=False, mAttrs=None, cAttrs=None):
'''
overload call for getChildren
'''
pass
def getSkeletonRoots(self):
'''
get the Skeleton Root, used in the poseSaver. By default this looks
for a message link via the attr "exportSkeletonRoot" to the skeletons root jnt
always returns a list!
'''
pass
def getNodeConnectionMetaDataMap(self, node, mTypes=[]):
pass
#========================================================================
# This HAS to be at the END of this module so that the RED9_META_REGISTRY
# picks up all inherited subclasses when Red9.core is imported
#========================================================================
r9Meta.registerMClassInheritanceMapping()
#r9Meta.registerMClassNodeMapping(nodes='myNewNodeType')
示例2: super
# 需要导入模块: from Red9.core import Red9_Meta [as 别名]
# 或者: from Red9.core.Red9_Meta import registerMClassInheritanceMapping [as 别名]
if not mc.objExists("{0}.UUID".format(node)):
attributes.doAddAttr(node, 'UUID', 'string')
attributes.doSetAttr(node,'UUID','',True)
attributes.doSetAttr(node,'mClass',_setClass,True)
except Exception,error:
log.error("pre setClass fail >> %s"%error)
super(ChildClass, self).__init__(*args,**kws)
#>>> TO USE Cached instance ---------------------------------------------------------
if self.cached:
log.info('ChildClass.__init__ -- Using cached')
return
class ChildClass2(ChildClass):
def __init__(self,*args,**kws):
super(ChildClass2, self).__init__(*args,**kws)
log.info('ChildClass2.__init__ --')
class ChildClass3(ChildClass):
def __init__(self,*args,**kws):
super(ChildClass3, self).__init__(*args,**kws)
log.info('ChildClass3.__init__ --')
#=========================================================================
# R9 Stuff - We force the update on the Red9 internal registry
#=========================================================================
r9Meta.registerMClassInheritanceMapping()#Pushes our classes in