OpenMaya.MMessage Class Reference

OpenMaya.MMessage Class Reference

Class Description

Base class for message callbacks.
+ Inheritance diagram for OpenMaya.MMessage:

Static Public Member Functions

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

Static Public Attributes

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

Member Function Documentation

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