本文整理汇总了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
示例2: creator
# 需要导入模块: from maya import OpenMayaMPx [as 别名]
# 或者: from maya.OpenMayaMPx import asMPxPtr [as 别名]
def creator():
return ompx.asMPxPtr(SporeToolCmd())
示例3: makeObj
# 需要导入模块: from maya import OpenMayaMPx [as 别名]
# 或者: from maya.OpenMayaMPx import asMPxPtr [as 别名]
def makeObj(self):
return ompx.asMPxPtr(SporeContext())
示例4: creator
# 需要导入模块: from maya import OpenMayaMPx [as 别名]
# 或者: from maya.OpenMayaMPx import asMPxPtr [as 别名]
def creator():
return ompx.asMPxPtr(SporeCommand())
示例5: creatorInitialize
# 需要导入模块: from maya import OpenMayaMPx [as 别名]
# 或者: from maya.OpenMayaMPx import asMPxPtr [as 别名]
def creatorInitialize():
return OpenMayaMPx.asMPxPtr(RemoveInfluenceCtxInitialize())
示例6: creatorBefore
# 需要导入模块: from maya import OpenMayaMPx [as 别名]
# 或者: from maya.OpenMayaMPx import asMPxPtr [as 别名]
def creatorBefore():
return OpenMayaMPx.asMPxPtr(RemoveInfluenceCtxBefore())
示例7: creatorAfter
# 需要导入模块: from maya import OpenMayaMPx [as 别名]
# 或者: from maya.OpenMayaMPx import asMPxPtr [as 别名]
def creatorAfter():
return OpenMayaMPx.asMPxPtr(RemoveInfluenceCtxAfter())
示例8: creatorInitialize
# 需要导入模块: from maya import OpenMayaMPx [as 别名]
# 或者: from maya.OpenMayaMPx import asMPxPtr [as 别名]
def creatorInitialize():
return OpenMayaMPx.asMPxPtr(SmoothWeightsCtxInitialize())
示例9: creatorUpdate
# 需要导入模块: from maya import OpenMayaMPx [as 别名]
# 或者: from maya.OpenMayaMPx import asMPxPtr [as 别名]
def creatorUpdate():
return OpenMayaMPx.asMPxPtr(SmoothWeightsCtxUpdate())
示例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
示例11: cmdCreator
# 需要导入模块: from maya import OpenMayaMPx [as 别名]
# 或者: from maya.OpenMayaMPx import asMPxPtr [as 别名]
def cmdCreator():
return OpenMayaMPx.asMPxPtr( scriptedCommand() )
# Initialize the script plug-in
示例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
示例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
示例14: cmdCreator
# 需要导入模块: from maya import OpenMayaMPx [as 别名]
# 或者: from maya.OpenMayaMPx import asMPxPtr [as 别名]
def cmdCreator():
# Create the command
return OpenMayaMPx.asMPxPtr( SimpleCommand() )
# Syntax creator
示例15: translatorCreator
# 需要导入模块: from maya import OpenMayaMPx [as 别名]
# 或者: from maya.OpenMayaMPx import asMPxPtr [as 别名]
def translatorCreator():
return OpenMayaMPx.asMPxPtr(osm2mayaTranslator())