#include <MContainerMessage.h>
The container node in Maya bundles together a group of related nodes. The user can then publish attribute names to the container, and bind attributes from nodes in the container to the published names.
MContainerMessage class allows the API user to register callbacks that inform them about changes to published attributes on containers.
To remove a callback use MMessage::removeCallback. All callbacks that are registered by a plug-in must be removed by that plug-in when it is unloaded. Failure to do so will result in a fatal error.
Static Public Member Functions | |
static MCallbackId | addPublishAttrCallback (MMessage::MNodeStringBoolFunction func, void *clientData=NULL, MStatus *ReturnStatus=NULL) |
static MCallbackId | addBoundAttrCallback (MMessage::MNodeStringBoolFunction func, void *clientData=NULL, MStatus *ReturnStatus=NULL) |
MCallbackId MContainerMessage::addPublishAttrCallback | ( | MMessage::MNodeStringBoolFunction | func, | |
void * | clientData = NULL , |
|||
MStatus * | ReturnStatus = NULL | |||
) | [static] |
This method registers a callback that is called whenever an attribute is published or unpublished from a container.
[in] | func | the callback function
|
[in] | clientData | User defined data passed to the callback function |
[out] | ReturnStatus | status code |
MCallbackId MContainerMessage::addBoundAttrCallback | ( | MMessage::MNodeStringBoolFunction | func, | |
void * | clientData = NULL , |
|||
MStatus * | ReturnStatus = NULL | |||
) | [static] |
This method registers a callback that is called whenever an attribute is bound or unbound on a container.
[in] | func | the callback function
|
[in] | clientData | User defined data passed to the callback function |
[out] | ReturnStatus | status code |
Autodesk® Maya® 2009 © 1997-2008 Autodesk, Inc. All rights reserved. | Generated with 1.5.6 |