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

Static Public Member Functions

def currentCallbackId ()
 
def nodeCallbacks ()
 
def removeCallback ()
 
def removeCallbacks ()
 

Static Public Attributes

int kDefaultAction = 0
 
int kDoAction = 2
 
int kDoNotDoAction = 1
 

Detailed Description

Base class for message callbacks.

Member Function Documentation

def OpenMaya.MMessage.currentCallbackId ( )
static
currentCallbackId() -> id

Returns the callback ID of the currently executing callback. If called
outside of a callback, an invalid MCallbackId and failed status will
be returned.
def OpenMaya.MMessage.nodeCallbacks ( )
static
nodeCallbacks(node) -> ids

Returns a list of callback IDs registered to a given node.

 * node (MObject) - Node to query for callbacks.
 * ids (MCallbackIdArray) - Array to store the list of callback IDs.
def OpenMaya.MMessage.removeCallback ( )
static
removeCallback(id) -> None

Removes the specified callback from Maya.
This method must be called for all callbacks registered by a
plug-in before that plug-in is unloaded.

 * id (MCallbackId) - identifier of callback to be removed
def OpenMaya.MMessage.removeCallbacks ( )
static
removeCallbacks(ids) -> None

Removes all of the specified callbacks from Maya.
This method must be called for all callbacks registered by a
plug-in before that plug-in is unloaded.

 * idList (MCallbackIdArray) - list of callbacks to be removed.