#include "blindDataMesh.h"
#include "blindDataShader.h"
#include <maya/MFnPlugin.h>
MStatus initializePlugin( MObject obj )
{
MStatus status;
MFnPlugin plugin( obj, PLUGIN_COMPANY, "5.0", "Any");
const MString UserClassify( "shader/surface/utility" );
status = plugin.registerNode( "blindDataShader",
blindDataShader::id,
blindDataShader::creator,
blindDataShader::initialize,
MPxNode::kHwShaderNode,
&UserClassify );
if (!status) {
status.perror("registerNode");
return status;
}
status = plugin.registerNode( "blindDataMesh",
blindDataMesh::id,
blindDataMesh::creator,
blindDataMesh::initialize );
if (!status) {
status.perror("registerNode");
return status;
}
return status;
}
MStatus uninitializePlugin( MObject obj )
{
MStatus status;
MFnPlugin plugin( obj );
status = plugin.deregisterNode( blindDataMesh::id );
if (!status) {
status.perror("deregisterNode");
return status;
}
plugin.deregisterNode( blindDataShader::id );
if (!status) {
status.perror("deregisterNode");
return status;
}
return status;
}