Python API 2.0 Reference
OpenMaya.MWeight Class Reference
+ Inheritance diagram for OpenMaya.MWeight:

Public Member Functions

def __init__ ()
 

Static Public Member Functions

def __new__ ()
 

Properties

 influence = property(...)
 
 seam = property(...)
 

Detailed Description

Methods for accessing component weight data. This class is currently
only used to access soft select and symmetry selection weights.
Other weight data (e.g. deformer weights) does not use this class
and can be accessed through the corresponding MFn class or directly
from the node's attributes.

__init__()
Initializes a new MWeight object with influence weight of 1 and seam
weight of 0.
__init__(MWeight src)
Initializes a new MWeight object with the same value as src.

Constructors

Signature Parameters Description
MWeight()  

Default constructor. Returns a new MWeight object with influence weight of 1 and seam weight of 0.

MWeight(src) src - MWeight

Copy constructor. Returns a new MWeight object with the same value as src.

 


Constructor & Destructor Documentation

def OpenMaya.MWeight.__init__ ( )
Initialize self.  See help(type(self)) for accurate signature.

Member Function Documentation

def OpenMaya.MWeight.__new__ ( )
static
Create and return a new object.  See help(type) for accurate signature.

Property Documentation

OpenMaya.MWeight.influence = property(...)
static
 Controls how much of a given operation is applied to the entity
 associated with this weight structure. A value of 1 means the full
  effect should be applied. A value of 0 means the operation should
 not affect the entity at all.
OpenMaya.MWeight.seam = property(...)
static
 Indicates how close the entity associated with this weight is to the
 plane of reflection (the seam), and hence, how strongly it should be
 associated with the seam. A value of 0 means the entity is free to move
 independent of the seam. A value of 1 means the entity is full on the
 seam, and should ideally maintain it's distance relative to the plane of
 symmetry. This value is only relevant when symmetry is enabled.