OpenMaya.MTypeId Class Reference

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

 


+ Inheritance diagram for OpenMaya.MTypeId:

Public Member Functions

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

Constructor & Destructor Documentation

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

Member Function Documentation

OpenMaya.MTypeId.__eq__ ( )
x.__eq__(y) <==> x==y
OpenMaya.MTypeId.__ge__ ( )
x.__ge__(y) <==> x>=y
OpenMaya.MTypeId.__gt__ ( )
x.__gt__(y) <==> x>y
OpenMaya.MTypeId.__le__ ( )
x.__le__(y) <==> x<=y
OpenMaya.MTypeId.__lt__ ( )
x.__lt__(y) <==> x<y
OpenMaya.MTypeId.__ne__ ( )
x.__ne__(y) <==> x!=y
OpenMaya.MTypeId.__repr__ ( )
x.__repr__() <==> repr(x)
OpenMaya.MTypeId.__str__ ( )
x.__str__() <==> str(x)
OpenMaya.MTypeId.id ( )
Returns the type id as a long.
Signature: id()
Parameters:  
Returns: long
Description: Returns the object's id.

The documentation for this class was generated from the following files:
  • D:/Maya-MD-Merge/input/python/2.0/OpenMaya.py
  • D:/Maya-MD-Merge/input/python/extras.dox