本文整理汇总了Python中maya.OpenMayaMPx.MPxCommand方法的典型用法代码示例。如果您正苦于以下问题:Python OpenMayaMPx.MPxCommand方法的具体用法?Python OpenMayaMPx.MPxCommand怎么用?Python OpenMayaMPx.MPxCommand使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类maya.OpenMayaMPx
的用法示例。
在下文中一共展示了OpenMayaMPx.MPxCommand方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from maya import OpenMayaMPx [as 别名]
# 或者: from maya.OpenMayaMPx import MPxCommand [as 别名]
def __init__(self):
ompx.MPxCommand.__init__(self)
self.target = None
self.settings = None
self.sample_type = None
self.num_samples = None
self.cell_size = None
self.min_distance = None
self.logger = logging_util.SporeLogger(__name__)
# emit attributes
self.node_name = None
self.mode = None
self.use_tex = None
self.num_samples = None
self.cell_size = None
self.min_radius = None
self.min_radius_2d = None
self.align_modes = None
self.align_id = None
self.strength = None
self.min_rot = None
self.max_rot = None
self.uni_scale = None
self.min_scale = None
self.max_scale = None
self.min_offset = None
self.max_offset = None
self.min_altitude = None
self.max_altitude = None
self.min_altitude_fuzz = None
self.max_altitude_fuzz = None
self.min_slope = None
self.max_slope = None
self.slope_fuzz = None
self.ids = None
示例2: redoIt
# 需要导入模块: from maya import OpenMayaMPx [as 别名]
# 或者: from maya.OpenMayaMPx import MPxCommand [as 别名]
def redoIt(self):
self.append_points()
# ompx.MPxCommand.clearResult()
# ompx.MPxCommand.setResult(['foo', 'bar', 1, 2,])
示例3: __init__
# 需要导入模块: from maya import OpenMayaMPx [as 别名]
# 或者: from maya.OpenMayaMPx import MPxCommand [as 别名]
def __init__(self):
ompx.MPxCommand.__init__(self)
self.logger = logging_util.SporeLogger(__name__)
self.dag_mod_instancer = om.MDagModifier()
self.dag_mod_spore = om.MDagModifier()
self.dag_mod_transform = om.MDagModifier()
self.spore = om.MObject()
self.instancer = om.MObject()
self.target = om.MObject()
self.source = om.MObjectArray()
self.name = ''
示例4: __init__
# 需要导入模块: from maya import OpenMayaMPx [as 别名]
# 或者: from maya.OpenMayaMPx import MPxCommand [as 别名]
def __init__(self):
OpenMayaMPx.MPxCommand.__init__(self)
示例5: __init__
# 需要导入模块: from maya import OpenMayaMPx [as 别名]
# 或者: from maya.OpenMayaMPx import MPxCommand [as 别名]
def __init__(self):
OpenMayaMPx.MPxCommand.__init__(self)
# doIt() should parse the args if needed,
# and either do the main work of the command
# or would call redoIt() if you are writing
# a command that supports undo.
示例6: __init__
# 需要导入模块: from maya import OpenMayaMPx [as 别名]
# 或者: from maya.OpenMayaMPx import MPxCommand [as 别名]
def __init__(self):
OpenMayaMPx.MPxCommand.__init__(self)
self.mUndo = []
示例7: __init__
# 需要导入模块: from maya import OpenMayaMPx [as 别名]
# 或者: from maya.OpenMayaMPx import MPxCommand [as 别名]
def __init__(self):
OpenMayaMPx.MPxCommand.__init__(self)
self._name = ""
self._node_mobject = OpenMaya.MObject()
self._dgmod = OpenMaya.MDGModifier()