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

Public Member Functions

def __eq__ ()
 
def __ge__ ()
 
def __gt__ ()
 
def __init__ ()
 
def __le__ ()
 
def __lt__ ()
 
def __ne__ ()
 
def apiType ()
 
def hasFn ()
 
def isNull ()
 

Static Public Member Functions

def __new__ ()
 

Static Public Attributes

 kNullObj = <OpenMaya.MObjectobject>
 

Properties

 apiTypeStr = property(...)
 

Detailed Description

Opaque wrapper for internal Maya objects.

Constructors

SignatureParametersDescription
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.

 


Constructor & Destructor Documentation

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

Member Function Documentation

def OpenMaya.MObject.__eq__ ( )
Return self==value.
def OpenMaya.MObject.__ge__ ( )
Return self>=value.
def OpenMaya.MObject.__gt__ ( )
Return self>value.
def OpenMaya.MObject.__le__ ( )
Return self<=value.
def OpenMaya.MObject.__lt__ ( )
Return self<value.
def OpenMaya.MObject.__ne__ ( )
Return self!=value.
def OpenMaya.MObject.__new__ ( )
static
Create and return a new object.  See help(type) for accurate signature.
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).

Member Data Documentation

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.

Property Documentation

OpenMaya.MObject.apiTypeStr = property(...)
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.