meshReorder/meshReorderPlugin.cpp
#include "meshReorderCmd.h"
#include "meshReorderTool.h"
#include "meshRemapCmd.h"
#include "meshRemapTool.h"
#include <maya/MFnPlugin.h>
{
MFnPlugin plugin(obj, PLUGIN_COMPANY,
"4.0",
"Any");
status = plugin.
registerContextCommand(
"meshReorderContext", meshReorderContextCmd::creator,
"meshReorder", meshReorderCommand::creator );
if (!status)
{
status.
perror(
"registerContextCommand");
return status;
}
status = plugin.
registerContextCommand(
"meshRemapContext", meshRemapContextCmd::creator,
"meshRemap", meshRemapCommand::creator );
if (!status)
{
status.
perror(
"registerContextCommand");
return status;
}
return status;
}
{
status = plugin.deregisterContextCommand( "meshReorderContext", "meshReorder" );
if (!status)
{
status.
perror(
"deregisterContextCommand");
return status;
}
status = plugin.deregisterContextCommand( "meshRemapContext", "meshRemap" );
if (!status)
{
status.
perror(
"deregisterContextCommand");
return status;
}
return status;
}