#include <maya/MTemplateCommand.h>
class helloTemplateWorld;
char cmdName[] = "helloTemplateWorld";
class helloTemplateWorld :
public MTemplateAction<helloTemplateWorld,cmdName, MTemplateCommand_nullSyntax >
{
public:
helloTemplateWorld() {}
~helloTemplateWorld() override {}
{
return MS::kSuccess;
}
};
static helloTemplateWorld _hello;
{
MFnPlugin plugin( obj, PLUGIN_COMPANY,
"2009",
"Any");
status = _hello.registerCommand( obj );
if (!status)
{
status.
perror(
"registerCommand");
return status;
}
return status;
}
{
status = _hello.deregisterCommand( obj );
if (!status)
{
status.
perror(
"deregisterCommand");
return status;
}
return status;
}