Python maya.OpenMayaMPx.MPxCommand() Examples

The following are 11 code examples of maya.OpenMayaMPx.MPxCommand(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module maya.OpenMayaMPx , or try the search function .
Example #1
Source File: spore_sampler.py    From spore with MIT License 5 votes vote down vote up
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 
Example #2
Source File: spore_sampler.py    From spore with MIT License 5 votes vote down vote up
def redoIt(self):

        self.append_points()

        #  ompx.MPxCommand.clearResult()
        #  ompx.MPxCommand.setResult(['foo', 'bar', 1, 2,]) 
Example #3
Source File: spore_command.py    From spore with MIT License 5 votes vote down vote up
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 = '' 
Example #4
Source File: paintRemoveInfluenceCtxCommands.py    From maya-skinning-tools with GNU General Public License v3.0 5 votes vote down vote up
def __init__(self):
        OpenMayaMPx.MPxCommand.__init__(self) 
Example #5
Source File: paintRemoveInfluenceCtxCommands.py    From maya-skinning-tools with GNU General Public License v3.0 5 votes vote down vote up
def __init__(self):
        OpenMayaMPx.MPxCommand.__init__(self) 
Example #6
Source File: paintRemoveInfluenceCtxCommands.py    From maya-skinning-tools with GNU General Public License v3.0 5 votes vote down vote up
def __init__(self):
        OpenMayaMPx.MPxCommand.__init__(self) 
Example #7
Source File: paintSmoothWeightsCtxCommands.py    From maya-skinning-tools with GNU General Public License v3.0 5 votes vote down vote up
def __init__(self):
        OpenMayaMPx.MPxCommand.__init__(self) 
Example #8
Source File: paintSmoothWeightsCtxCommands.py    From maya-skinning-tools with GNU General Public License v3.0 5 votes vote down vote up
def __init__(self):
        OpenMayaMPx.MPxCommand.__init__(self) 
Example #9
Source File: SimpleCommand.py    From tutorials with MIT License 5 votes vote down vote up
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. 
Example #10
Source File: instanceAlongCurve.py    From instanceAlongCurve with MIT License 5 votes vote down vote up
def __init__(self):
        OpenMayaMPx.MPxCommand.__init__(self)
        self.mUndo = [] 
Example #11
Source File: swingtwist.py    From cmt with MIT License 5 votes vote down vote up
def __init__(self):
        OpenMayaMPx.MPxCommand.__init__(self)
        self._name = ""
        self._node_mobject = OpenMaya.MObject()
        self._dgmod = OpenMaya.MDGModifier()