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


Python Red9_Meta.printSubClassRegistry方法代码示例

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


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

示例1: _reload

# 需要导入模块: from Red9.core import Red9_Meta [as 别名]
# 或者: from Red9.core.Red9_Meta import printSubClassRegistry [as 别名]
def _reload():
    '''
    reload carefully and re-register the RED9_META_REGISTRY
    '''
    Red9.core._reload()
    reload(cgm_General)    
    reload(cgm_Meta)
    reload(cgm_PuppetMeta)
    reload(cgm_RigMeta)
    reload(cgmPy.validateArgs)
    reload(rigger.ModuleFactory)
    reload(rigger.JointFactory)
    reload(rigger.TemplateFactory)
    reload(rigger.PuppetFactory)
    reload(rigger.RigFactory)
    reload(rigger.ModuleShapeCaster)
    reload(rigger.ModuleControlFactory)
    
    reload(classes.DraggerContextFactory)
    reload(classes.SnapFactory)
    reload(lib.rayCaster)
    reload(lib.meta_Utils)
    reload(lib.shapeCaster)
    
    
    Red9_Meta.registerMClassNodeMapping(nodeTypes = ['transform','objectSet','clamp','setRange','pointOnCurveInfo','decomposeMatrix','remapValue',
                                                     'ikSplineSolver','blendColors','blendTwoAttr','addDoubleLinear','condition','multiplyDivide','plusMinusAverage'])

    print('CGM Core Reloaded and META REGISTRY updated') 
    print '=============================================================================='  
    Red9_Meta.printSubClassRegistry()  
    print '=============================================================================='    
开发者ID:GuidoPollini,项目名称:MuTools,代码行数:34,代码来源:__init__.py

示例2: _reload

# 需要导入模块: from Red9.core import Red9_Meta [as 别名]
# 或者: from Red9.core.Red9_Meta import printSubClassRegistry [as 别名]
def _reload():
    '''
    reload carefully and re-register the RED9_META_REGISTRY
    '''
    Red9.core._reload()
    reload(cgm_Meta)
    reload(cgm_PuppetMeta)
    
    print('CGM Core Reloaded and META REGISTRY updated') 
    print '============================================='  
    Red9_Meta.printSubClassRegistry()  
    print '============================================='    
开发者ID:GuidoPollini,项目名称:MuTools,代码行数:14,代码来源:__init__.py

示例3:

# 需要导入模块: from Red9.core import Red9_Meta [as 别名]
# 或者: from Red9.core.Red9_Meta import printSubClassRegistry [as 别名]
o1.mNode
n1.mNode#...both return fine
o1.select()
n1.select()
#... all the base functionality is there. You get the idea

#>>How are they different? =========================================================================
#Take a moment to select each node and look at their user attributes in the attribute editor
#You'll notice that our meta call created node has several user attributes
mc.listAttr(o1.mNode, userDefined = True)
mc.listAttr(n1.mNode, userDefined = True)


#>>Caching =========================================================================
r9Meta.printMetaTypeRegistry()#...this is a list of the kinds of maya nodes registered for creation and searching
r9Meta.printSubClassRegistry()#...this is a list of metaClass subclasses registered in memory.


#One of the main benefits of meta nodes is that they may be cached for speed. Let's look at the cache.
r9Meta.printMetaCacheRegistry()#...one of our nodes is cached, one is not
r9Meta.registerMClassNodeCache(o1)#...let's push our cmd created node into the cache
r9Meta.printMetaCacheRegistry()#...now it is cached with it's dag handle

r9Meta.resetCache()


r9Meta.printMetaCacheRegistry()#...returns a list of cached nodes. It will most likely be empty


#>>Conversion =========================================================================
#...The wrong way....
开发者ID:Italic-,项目名称:maya-prefs,代码行数:33,代码来源:help_introToMeta.py


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