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


Python Red9_Meta.registerMClassInheritanceMapping方法代码示例

本文整理汇总了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')
开发者ID:miketon,项目名称:SymLink,代码行数:32,代码来源:MetaData_subclassing.py

示例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
开发者ID:Italic-,项目名称:maya-prefs,代码行数:32,代码来源:exampleForMark.py


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