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


Python OpenMayaMPx.MPxCommand方法代码示例

本文整理汇总了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 
开发者ID:wiremas,项目名称:spore,代码行数:40,代码来源:spore_sampler.py

示例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,]) 
开发者ID:wiremas,项目名称:spore,代码行数:8,代码来源:spore_sampler.py

示例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 = '' 
开发者ID:wiremas,项目名称:spore,代码行数:14,代码来源:spore_command.py

示例4: __init__

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

示例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. 
开发者ID:justinfx,项目名称:tutorials,代码行数:10,代码来源:SimpleCommand.py

示例6: __init__

# 需要导入模块: from maya import OpenMayaMPx [as 别名]
# 或者: from maya.OpenMayaMPx import MPxCommand [as 别名]
def __init__(self):
        OpenMayaMPx.MPxCommand.__init__(self)
        self.mUndo = [] 
开发者ID:mmerchante,项目名称:instanceAlongCurve,代码行数:5,代码来源:instanceAlongCurve.py

示例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() 
开发者ID:chadmv,项目名称:cmt,代码行数:7,代码来源:swingtwist.py


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