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


Python OpenMayaMPx.asMPxPtr方法代码示例

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


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

示例1: creator

# 需要导入模块: from maya import OpenMayaMPx [as 别名]
# 或者: from maya.OpenMayaMPx import asMPxPtr [as 别名]
def creator():
    return ompx.asMPxPtr(SporeSampler())


# Syntax creator 
开发者ID:wiremas,项目名称:spore,代码行数:7,代码来源:spore_sampler.py

示例2: creator

# 需要导入模块: from maya import OpenMayaMPx [as 别名]
# 或者: from maya.OpenMayaMPx import asMPxPtr [as 别名]
def creator():
        return ompx.asMPxPtr(SporeToolCmd()) 
开发者ID:wiremas,项目名称:spore,代码行数:4,代码来源:spore_context.py

示例3: makeObj

# 需要导入模块: from maya import OpenMayaMPx [as 别名]
# 或者: from maya.OpenMayaMPx import asMPxPtr [as 别名]
def makeObj(self):
        return ompx.asMPxPtr(SporeContext()) 
开发者ID:wiremas,项目名称:spore,代码行数:4,代码来源:spore_context.py

示例4: creator

# 需要导入模块: from maya import OpenMayaMPx [as 别名]
# 或者: from maya.OpenMayaMPx import asMPxPtr [as 别名]
def creator():
        return ompx.asMPxPtr(SporeCommand()) 
开发者ID:wiremas,项目名称:spore,代码行数:4,代码来源:spore_command.py

示例5: creatorInitialize

# 需要导入模块: from maya import OpenMayaMPx [as 别名]
# 或者: from maya.OpenMayaMPx import asMPxPtr [as 别名]
def creatorInitialize():     
    return OpenMayaMPx.asMPxPtr(RemoveInfluenceCtxInitialize()) 
开发者ID:robertjoosten,项目名称:maya-skinning-tools,代码行数:4,代码来源:paintRemoveInfluenceCtxCommands.py

示例6: creatorBefore

# 需要导入模块: from maya import OpenMayaMPx [as 别名]
# 或者: from maya.OpenMayaMPx import asMPxPtr [as 别名]
def creatorBefore():     
    return OpenMayaMPx.asMPxPtr(RemoveInfluenceCtxBefore()) 
开发者ID:robertjoosten,项目名称:maya-skinning-tools,代码行数:4,代码来源:paintRemoveInfluenceCtxCommands.py

示例7: creatorAfter

# 需要导入模块: from maya import OpenMayaMPx [as 别名]
# 或者: from maya.OpenMayaMPx import asMPxPtr [as 别名]
def creatorAfter():
    return OpenMayaMPx.asMPxPtr(RemoveInfluenceCtxAfter()) 
开发者ID:robertjoosten,项目名称:maya-skinning-tools,代码行数:4,代码来源:paintRemoveInfluenceCtxCommands.py

示例8: creatorInitialize

# 需要导入模块: from maya import OpenMayaMPx [as 别名]
# 或者: from maya.OpenMayaMPx import asMPxPtr [as 别名]
def creatorInitialize():     
    return OpenMayaMPx.asMPxPtr(SmoothWeightsCtxInitialize()) 
开发者ID:robertjoosten,项目名称:maya-skinning-tools,代码行数:4,代码来源:paintSmoothWeightsCtxCommands.py

示例9: creatorUpdate

# 需要导入模块: from maya import OpenMayaMPx [as 别名]
# 或者: from maya.OpenMayaMPx import asMPxPtr [as 别名]
def creatorUpdate():       
    return OpenMayaMPx.asMPxPtr(SmoothWeightsCtxUpdate()) 
开发者ID:robertjoosten,项目名称:maya-skinning-tools,代码行数:4,代码来源:paintSmoothWeightsCtxCommands.py

示例10: translator_creator

# 需要导入模块: from maya import OpenMayaMPx [as 别名]
# 或者: from maya.OpenMayaMPx import asMPxPtr [as 别名]
def translator_creator():
    return OpenMayaMPx.asMPxPtr( GLTFTranslator() )

# initialize the script plug-in 
开发者ID:matiascodesal,项目名称:maya-glTF,代码行数:6,代码来源:glTFTranslator.py

示例11: cmdCreator

# 需要导入模块: from maya import OpenMayaMPx [as 别名]
# 或者: from maya.OpenMayaMPx import asMPxPtr [as 别名]
def cmdCreator():
    return OpenMayaMPx.asMPxPtr( scriptedCommand() )
    
# Initialize the script plug-in 
开发者ID:TomMinor,项目名称:P4VFX,代码行数:6,代码来源:P4Maya.py

示例12: initializeManipulator1

# 需要导入模块: from maya import OpenMayaMPx [as 别名]
# 或者: from maya.OpenMayaMPx import asMPxPtr [as 别名]
def initializeManipulator1(Manipulator):
    def _manipulatorCreator():
        return ompx1.asMPxPtr(Manipulator())

    def _manipulatorInit():
        ompx1.MPxManipContainer.addToManipConnectTable(Manipulator.ownerid)
        ompx1.MPxManipContainer.initialize()

    def initializePlugin(obj):
        version = ".".join(map(str, Manipulator.version))
        plugin = ompx1.MFnPlugin(obj, "Cmdx", version, "Any")

        # NOTE(marcus): The name *must* end with Manip
        # See https://download.autodesk.com/us/maya/2011help
        #     /API/class_m_px_manip_container.html
        #     #e95527ff30ae53c8ae0419a1abde8b0c
        assert Manipulator.name.endswith("Manip"), (
            "Manipulator '%s' must have the name of a plug-in, "
            "and end with 'Manip'"
        )

        plugin.registerNode(
            Manipulator.name,
            Manipulator.typeid,
            _manipulatorCreator,
            _manipulatorInit,
            ompx1.MPxNode.kManipContainer
        )

    return initializePlugin 
开发者ID:mottosso,项目名称:cmdx,代码行数:32,代码来源:cmdx.py

示例13: nodeCreator

# 需要导入模块: from maya import OpenMayaMPx [as 别名]
# 或者: from maya.OpenMayaMPx import asMPxPtr [as 别名]
def nodeCreator():
	return OpenMayaMPx.asMPxPtr( ShakeNode() )


# Maya expects this function, to initialize
# the node class ONCE when the plugin is loaded
# It sets up the attributes 
开发者ID:justinfx,项目名称:tutorials,代码行数:9,代码来源:shakeNode.py

示例14: cmdCreator

# 需要导入模块: from maya import OpenMayaMPx [as 别名]
# 或者: from maya.OpenMayaMPx import asMPxPtr [as 别名]
def cmdCreator():
    # Create the command
    return OpenMayaMPx.asMPxPtr( SimpleCommand() )

# Syntax creator 
开发者ID:justinfx,项目名称:tutorials,代码行数:7,代码来源:SimpleCommand.py

示例15: translatorCreator

# 需要导入模块: from maya import OpenMayaMPx [as 别名]
# 或者: from maya.OpenMayaMPx import asMPxPtr [as 别名]
def translatorCreator():
        return OpenMayaMPx.asMPxPtr(osm2mayaTranslator()) 
开发者ID:mkagenius,项目名称:osm2maya,代码行数:4,代码来源:loadOsm2maya.py


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