pointOnMeshInfo/pointOnMeshInfoPlugin.cpp
#include "pointOnMeshCmd.h"
#include "pointOnMeshInfoNode.h"
#include <maya/MFnPlugin.h>
{
MFnPlugin plugin(obj, PLUGIN_COMPANY,
"4.0",
"Any");
status = plugin.
registerCommand(
"pointOnMesh", pointOnMeshCommand::creator);
if (!status)
{
status.
perror(
"registerCommand");
return status;
}
status = plugin.
registerNode(
"pointOnMeshInfo", pointOnMeshInfoNode::id, pointOnMeshInfoNode::creator, pointOnMeshInfoNode::initialize);
if (!status)
{
status.
perror(
"registerNode");
return status;
}
return status;
}
{
status = plugin.deregisterCommand("pointOnMesh");
if (!status)
{
status.
perror(
"deregisterCommand");
return status;
}
status = plugin.deregisterNode(pointOnMeshInfoNode::id);
if (!status)
{
status.
perror(
"deregisterNode");
return status;
}
return status;
}