OpenMaya.MObjectHandle Class Reference

OpenMaya.MObjectHandle Class Reference
+ この参照ページは、次の概要トピックと関連付けられています。

Class Description

Generic Class for validating MObjects.
+ Inheritance diagram for OpenMaya.MObjectHandle:

Public Member Functions

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

Constructor & Destructor Documentation

OpenMaya.MObjectHandle.__init__ ( )
x.__init__(...) initializes x; see help(type(x)) for signature

Member Function Documentation

OpenMaya.MObjectHandle.__eq__ ( )
x.__eq__(y) <==> x==y
OpenMaya.MObjectHandle.__ge__ ( )
x.__ge__(y) <==> x>=y
OpenMaya.MObjectHandle.__gt__ ( )
x.__gt__(y) <==> x>y
OpenMaya.MObjectHandle.__le__ ( )
x.__le__(y) <==> x<=y
OpenMaya.MObjectHandle.__lt__ ( )
x.__lt__(y) <==> x<y
OpenMaya.MObjectHandle.__ne__ ( )
x.__ne__(y) <==> x!=y
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.