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

Public Member Functions

def __eq__ ()
 
def __ge__ ()
 
def __gt__ ()
 
def __init__ ()
 
def __le__ ()
 
def __lt__ ()
 
def __ne__ ()
 
def assign ()
 
def hashCode ()
 
def isAlive ()
 
def isValid ()
 
def object ()
 

Static Public Member Functions

def __new__ ()
 

Detailed Description

Generic Class for validating MObjects.

Constructor & Destructor Documentation

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

Member Function Documentation

def OpenMaya.MObjectHandle.__eq__ ( )
Return self==value.
def OpenMaya.MObjectHandle.__ge__ ( )
Return self>=value.
def OpenMaya.MObjectHandle.__gt__ ( )
Return self>value.
def OpenMaya.MObjectHandle.__le__ ( )
Return self<=value.
def OpenMaya.MObjectHandle.__lt__ ( )
Return self<value.
def OpenMaya.MObjectHandle.__ne__ ( )
Return self!=value.
def OpenMaya.MObjectHandle.__new__ ( )
static
Create and return a new object.  See help(type) for accurate signature.
def OpenMaya.MObjectHandle.assign ( )
assign(source) -> self

Assigns this MObjectHandle to an instance of another MObjectHandle, or to a MObject instance.

* source (MObject/MObjectHandle) - other instance to assign from.
def OpenMaya.MObjectHandle.hashCode ( )
hashCode() -> int

Returns a hash code for the internal Maya object referenced by the MObject within this MObjectHandle. If the MObject is null or no longer alive then 0 will be returned, otherwise the hash code is guaranteed to be non-zero
def OpenMaya.MObjectHandle.isAlive ( )
isAlive() -> bool

Returns the live state of the associated MObject. An object can still be 'alive' but not 'valid' (eg. a deleted object that resides in the undo queue).
def OpenMaya.MObjectHandle.isValid ( )
isValid() -> bool

Returns the validity of the associated MObject.
def OpenMaya.MObjectHandle.object ( )
object() -> MObject

Returns the MObject associated with this handle. The returned MObject will be MObject.kNullObj if the object is invalid.