OpenMaya.MObject Class Reference
Opaque wrapper for internal Maya objects.
Constructors
| Signature | Parameters | Description |
| MObject() | | Default constructor. Returns an empty MObject instance (i.e. one which contains kNullObj).
|
| MObject(src) | src - MObject | Copy constructor. Returns a new MObject instance which references the same internal Maya object as src, which must be another MObject instance. |
Comparison Support
| == | True if both MObjects refer to the same internal Maya object, False otherwise. |
| != | True if the two MObjects refer to different internal Maya objects, or one is null and the other is not. False otherwise. |
| OpenMaya.MObject.__init__ |
( |
| ) |
|
x.__init__(...) initializes x; see help(type(x)) for signature
| OpenMaya.MObject.__eq__ |
( |
| ) |
|
| OpenMaya.MObject.__ge__ |
( |
| ) |
|
| OpenMaya.MObject.__gt__ |
( |
| ) |
|
| OpenMaya.MObject.__le__ |
( |
| ) |
|
| OpenMaya.MObject.__lt__ |
( |
| ) |
|
| OpenMaya.MObject.__ne__ |
( |
| ) |
|
| OpenMaya.MObject.apiType |
( |
| ) |
|
Returns the function set type for the object.
| Signature: | apiType() |
| Parameters: | |
| Returns: | MFn type constant |
| Description: | Returns a constant indicating the type of the internal Maya object. If the MObject is null MFn.kInvalid will be returned. |
| OpenMaya.MObject.hasFn |
( |
| ) |
|
Tests whether object is compatible with the specified function set.
| Signature: | hasFn(fn) |
| Parameters: | fn - MFn type constant |
| Returns: | Bool |
| Description: | Returns True if the internal Maya object supports the specified function set specified by fn. |
| OpenMaya.MObject.isNull |
( |
| ) |
|
Tests whether there is an internal Maya object.
| Signature: | isNull() |
| Parameters: | |
| Returns: | Bool |
| Description: | Returns True if the MObject is not referring to any Maya internal internal object (i.e. it is equivalent to kNullObj). |
| OpenMaya.MObject.kNullObj = <OpenMaya.MObjectobject> |
|
static |
| Name: | kNullObj |
| Type: | MObject |
| Description: | Used to indicate that an MObject instance does not refer to any internal Maya object. Also used as a default value for MObject parameters to many methods. |
| OpenMaya.MObject.apiTypeStr |
|
static |
(readonly) String containing the object's type name.
| Name: | apiTypeStr |
| Type: | string |
| Access: | R |
| Description: | The internal Maya object's MFn type as a string. E.g. 'kTime' for a time node. |