Python API 2.0 Reference: OpenMaya.MTypeId Class Reference

+ Inheritance diagram for OpenMaya.MTypeId:

Public Member Functions

__eq__ ()
 
__ge__ ()
 
__gt__ ()
 
__init__ ()
 
__le__ ()
 
__lt__ ()
 
__ne__ ()
 
__repr__ ()
 
__str__ ()
 
id ()
 

Static Public Member Functions

__new__ ()
 

Detailed Description

Stores a Maya object type identifier.

Constructors

SignatureParametersDescription
MTypeId()  

Default constructor. Returns a new, empty MTypeId object.

MTypeId(src) src - MTypeId

Copy constructor. Returns a new MTypeId object with the same value as src.

MTypeId(id) id - long

Returns a new MTypeId object with the given id.

MTypeId(prefix, id) prefix - int
id - int

Returns a new MTypeId object whose id uses prefix for its upper 24 bits and id for its lower 8. Note that only the lower 24 bits of prefix and the lower 8 of id are significant. All higher order bits are ignored.

Comparison Support

MTypeId == MTypeId True if both objects contain the same id.
MTypeId != MTypeId True if the two objects contain different ids.

All other comparison operators will raise a TypeError exception.

 


Constructor & Destructor Documentation

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

Member Function Documentation

OpenMaya.MTypeId.__eq__ ( )
Return self==value.
OpenMaya.MTypeId.__ge__ ( )
Return self>=value.
OpenMaya.MTypeId.__gt__ ( )
Return self>value.
OpenMaya.MTypeId.__le__ ( )
Return self<=value.
OpenMaya.MTypeId.__lt__ ( )
Return self<value.
OpenMaya.MTypeId.__ne__ ( )
Return self!=value.
OpenMaya.MTypeId.__new__ ( )
static
Create and return a new object.  See help(type) for accurate signature.
OpenMaya.MTypeId.__repr__ ( )
Return repr(self).
OpenMaya.MTypeId.__str__ ( )
Return str(self).
OpenMaya.MTypeId.id ( )
Returns the type id as a long.
Signature: id()
Parameters:  
Returns: long
Description: Returns the object's id.