rockingTransformCheckMain.cpp
#include <maya/MFnPlugin.h>
#include <maya/MPxTransform.h>
#include <maya/MPxTransformationMatrix.h>
#include <maya/MTransformationMatrix.h>
#include "rockingTransformCheck.h"
MStatus initializePlugin( MObject obj )
{
MStatus status;
MFnPlugin plugin(obj, PLUGIN_COMPANY, "6.5", "Any");
status = plugin.registerTransform( "rockingTransformCheck",
rockingTransformCheckNode::idCheck,
&rockingTransformCheckNode::creator,
&rockingTransformNode::initialize,
&rockingTransformCheckMatrix::creator,
rockingTransformCheckMatrix::idCheck);
if (!status) {
status.perror("registerNode");
return status;
}
return status;
}
MStatus uninitializePlugin( MObject obj)
{
MStatus status;
MFnPlugin plugin(obj);
status = plugin.deregisterNode( rockingTransformCheckNode::idCheck );
if (!status) {
status.perror("deregisterNode");
return status;
}
return status;
}