#include <maya/MPxCommand.h>
#include <maya/MFnPlugin.h>
#include <maya/MFnSingleIndexedComponent.h>
#include <maya/MFnDoubleIndexedComponent.h>
#include <maya/MIntArray.h>
#include <maya/MColorArray.h>
#include <maya/MArgList.h>
#include <maya/MDagPath.h>
#include <maya/MSelectionList.h>
#include <maya/MGlobal.h>
#include <maya/MPlug.h>
#include <maya/MPaintMessage.h>
#include <sstream>
MCallbackId callbackId = 0;
{
std::ostringstream str;
str << plug.
info() << endl;
str << "[";
for ( unsigned int i=0; i<count; ++i ) {
str << "(" << us[i] << "," << vs[i] << ") ";
}
str << "]" << endl;
}
else {
str << "[";
for ( unsigned int i=0; i<count; ++i ) {
}
str << "]" << endl;
}
str << colors << endl;
}
{
public:
paintCallbackCmd() {};
virtual ~paintCallbackCmd();
static void* creator();
};
paintCallbackCmd::~paintCallbackCmd()
{
}
void* paintCallbackCmd::creator()
{
return new paintCallbackCmd();
}
{
if ( callbackId ) {
}
if ( stat ) {
callbackId = id;
} else {
}
return stat;
}
{
return plugin.registerCommand( "paintCallback", paintCallbackCmd::creator );
}
{
if ( callbackId ) {
}
return plugin.deregisterCommand( "paintCallback" );
}