#include <maya/MFnPlugin.h>
#include <maya/MStatus.h>
#include <maya/MPxCommand.h>
#include <maya/MMessage.h>
#include <maya/MCameraMessage.h>
#include <maya/MDagPath.h>
#include <maya/MGlobal.h>
#include <maya/MArgList.h>
#include <maya/MArgDatabase.h>
#include <maya/MSyntax.h>
#include <maya/MSelectionList.h>
#include <maya/MFnDependencyNode.h>
#include <maya/MCallbackIdArray.h>
{
public:
static void *creator();
static void removeCallbacks();
static void beginManipulationCB(
MObject& node,
void* clientData);
static void endManipulationCB(
MObject& node,
void* clientData);
private:
static bool nodeRemovedCBRegistered;
};
bool cameraMessageCmd::nodeRemovedCBRegistered = false;
{
argData.getObjects(objects);
for (
unsigned int i = 0; i < objects.
length(); i++) {
double* payloadBegin = new double(12345.5);
callbackIds.append(
);
if (!status) {
continue;
}
double* payloadEnd = new double(54321.5);
callbackIds.append(
);
if (!status) {
continue;
}
}
return status;
}
void* cameraMessageCmd::creator()
{
return new cameraMessageCmd;
}
MSyntax cameraMessageCmd::newSyntax() {
return syntax;
}
void cameraMessageCmd::beginManipulationCB(
MObject& node,
void* clientData) {
double* payloadA = static_cast<double*>(clientData);
if(payloadA)
{
}
}
void cameraMessageCmd::endManipulationCB(
MObject& node,
void* clientData) {
double* payloadB = static_cast<double*>(clientData);
if(payloadB)
{
}
}
void cameraMessageCmd::removeCallbacks() {
}
{
MFnPlugin pluginFn(obj, PLUGIN_COMPANY,
"6.0");
status = pluginFn.registerCommand("cameraMessageCmd", cameraMessageCmd::creator, cameraMessageCmd::newSyntax);
if( !status)
status.
perror(
"register Command failed");
return status;
}
{
cameraMessageCmd::removeCallbacks();
status = pluginFn.deregisterCommand("cameraMessageCmd");
return status;
}