OpenMaya.MObjectHandle Class Reference
         
    
Generic Class for validating MObjects.
 
      
        
          | OpenMaya.MObjectHandle.__init__ | ( |  | ) |  | 
      
 
x.__init__(...) initializes x; see help(type(x)) for signature
 
 
 
      
        
          | OpenMaya.MObjectHandle.__eq__ | ( |  | ) |  | 
      
 
 
      
        
          | OpenMaya.MObjectHandle.__ge__ | ( |  | ) |  | 
      
 
 
      
        
          | OpenMaya.MObjectHandle.__gt__ | ( |  | ) |  | 
      
 
 
      
        
          | OpenMaya.MObjectHandle.__le__ | ( |  | ) |  | 
      
 
 
      
        
          | OpenMaya.MObjectHandle.__lt__ | ( |  | ) |  | 
      
 
 
      
        
          | OpenMaya.MObjectHandle.__ne__ | ( |  | ) |  | 
      
 
 
      
        
          | 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.
 
 
 
      
        
          | 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
 
 
 
      
        
          | 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).
 
 
 
      
        
          | OpenMaya.MObjectHandle.isValid | ( |  | ) |  | 
      
 
isValid() -> bool
Returns the validity of the associated MObject.
 
 
 
      
        
          | OpenMaya.MObjectHandle.object | ( |  | ) |  | 
      
 
object() -> MObject
Returns the MObject associated with this handle. The returned MObject will be MObject.kNullObj if the object is invalid.