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

Static Public Member Functions

def addConditionCallback ()
 
def getConditionNames ()
 
def getConditionState ()
 
- Static Public Member Functions inherited from OpenMaya.MMessage
def currentCallbackId ()
 
def nodeCallbacks ()
 
def removeCallback ()
 
def removeCallbacks ()
 

Additional Inherited Members

- Static Public Attributes inherited from OpenMaya.MMessage
int kDefaultAction = 0
 
int kDoAction = 2
 
int kDoNotDoAction = 1
 

Detailed Description

Class used to register callbacks for condition related messages.

Method resolution order:
-   MConditionMessage
-   MMessage
-   builtins.object

Member Function Documentation

def OpenMaya.MConditionMessage.addConditionCallback ( )
static
addConditionCallback(conditionName, function, clientData=None) -> id

This method registers a callback for condition changed messages.
The callback function will be passed the new state of the
condition and any client data that the user wishes to pass in.

 * conditionName (string) - the condition to register the 
callback for
 * function - callable which will be passed a bool indicating
   the new state of the condition, and the clientData object.
 * clientData - User defined data passed to the callback function

 * return: Identifier used for removing the callback.
def OpenMaya.MConditionMessage.getConditionNames ( )
static
getConditionNames() -> (string, string, ...)

This method returns the list of available condition names.

 * return: tuple of available condition names.
def OpenMaya.MConditionMessage.getConditionState ( )
static
getConditionState(name) -> bool

This method returns the current state of a condition.

 * name (string) - the name of the condition.


 * return: The current state of the condition.