Python API 2.0 Reference
|
Static Public Member Functions | |
def | add3dViewDestroyMsgCallback () |
def | add3dViewPostRenderMsgCallback () |
def | add3dViewPreRenderMsgCallback () |
def | add3dViewRenderOverrideChangedCallback () |
def | add3dViewRendererChangedCallback () |
def | addCameraChangedCallback () |
def | addUiDeletedCallback () |
Additional Inherited Members |
Class used to register callbacks for UI related messages. Method resolution order: - MUiMessage - OpenMaya.MMessage - builtins.object
|
static |
add3dViewDestroyMsgCallback(panelName, function, clientData=None) -> id This method registers a callback for when a particular 3d view gets destroyed. The callback is called before the destruction of the view. The callback function will be passed any client data that was provided when the callback was registered * panelName (string) - Name of panel to which to attach the callback * function - callable which will be passed a string indicating the name of the panel that contain the 3d view and the clientData object * clientData - User defined data passed to the callback function * return: Identifier used for removing the callback.
|
static |
add3dViewPostRenderMsgCallback(panelName, function, clientData=None) -> id This method registers a callback for when the 3d view is about to display it's rendered contents to the viewport. It is called for every refresh of the view, after the scene is drawn, but before any 2d adornments are drawn. The callback function will be passed any client data that was provided when the callback was registered. * panelName (string) - Name of panel to which to attach the callback * function - callable which will be passed a string indicating the name of the panel that contain the 3d view and the clientData object * clientData - User defined data passed to the callback function * return: Identifier used for removing the callback.
|
static |
add3dViewPreRenderMsgCallback(panelName, function, clientData=None) -> id This method registers a callback for when a particular 3d view is about to render it's contents. It is called before the scene is drawn, but after the background has been drawn. The callback function will be passed any client data that was provided when the callback was registered. * panelName (string) - Name of panel to which to attach the callback * function - callable which will be passed a string indicating the name of the panel that contain the 3d view and the clientData object * clientData - User defined data passed to the callback function * return: Identifier used for removing the callback.
|
static |
add3dViewRendererChangedCallback(panelName, function, clientData=None) -> id This method registers a callback for when the renderer for a particular 3d view changes. The callback function will be passed any client data that was provided when the callback was registered. * panelName (string) - Name of panel to which to attach the callback * function - callable which will be passed 3 strings indicating: the name of the panel that contain the 3d view, the name of the old renderer used to draw the 3d view, the name of the new renderer used to draw the 3d view , and the clientData object * clientData - User defined data passed to the callback function * return: Identifier used for removing the callback.
|
static |
add3dViewRenderOverrideChangedCallback(panelName, function, clientData=None) -> id This method registers a callback for when the render override for a particular 3d view changes. The callback function will be passed any client data that was provided when the callback was registered. * panelName (string) - Name of panel to which to attach the callback * function - callable which will be passed 3 strings indicating: the name of the panel that contain the 3d view, the name of the old override used to draw in the 3d view, the name of the new override used to draw in the 3d view , and the clientData object * clientData - User defined data passed to the callback function * return: Identifier used for removing the callback.
|
static |
addCameraChangedCallback(panelName, function, clientData=None) -> id This method registers a callback for cameras being changed in 3d views. The callback is called when the camera changes for the given panel, not when attributes on the panel's camera change. The callback function will be passed any client data that was provided when the callback was registered. * panelName (string) - the name of panel to which to attach the callback. * function - callable which will be passed a string indicating the name of the panel that had the camera change, a MObject containing the current camera used by the panel and the clientData object * clientData - User defined data passed to the callback function * return: Identifier used for removing the callback.
|
static |
addUiDeletedCallback(uiName, function, clientData=None) -> id This method registers a callback for UI deleted messages. The callback function will be passed any client data that was provided when the callback was registered. * uiName (string) - the name of the UI object to register the callback for * function - callable which will be passed the clientData object * clientData - User defined data passed to the callback function * return: Identifier used for removing the callback.