progressWindowCmd/progressWindowCmd.cpp
#include <maya/MPxCommand.h>
#include <maya/MIOStream.h>
#include <maya/MFnPlugin.h>
#include <maya/MProgressWindow.h>
#include <maya/MString.h>
#include <maya/MGlobal.h>
{
public:
static void* creator();
};
void* progressWindowPlugin::creator()
{
return new progressWindowPlugin;
}
{
int amount = 0;
int maxProgress = 10;
{
stat = MS::kFailure;
return stat;
}
for (int i = amount; i < maxProgress; i++)
{
break;
}
statusStr += i;
}
return stat;
}
{
MFnPlugin plugin( obj, PLUGIN_COMPANY,
"6.0",
"Any");
status = plugin.registerCommand( "progressWindowCmd", progressWindowPlugin::creator );
if (!status) {
status.
perror(
"registerCommand");
return status;
}
return status;
}
{
status = plugin.deregisterCommand( "progressWindowCmd" );
if (!status) {
status.
perror(
"progressWindowCmd");
}
return status;
}