#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() << std::endl;
str << "[";
for ( unsigned int i=0; i<count; ++i ) {
str << "(" << us[i] << "," << vs[i] << ") ";
}
str << "]" << std::endl;
}
else {
str << "[";
for ( unsigned int i=0; i<count; ++i ) {
}
str << "]" << std::endl;
}
str << colors << std::endl;
}
{
public:
paintCallbackCmd() {};
~paintCallbackCmd() override;
static void* creator();
};
paintCallbackCmd::~paintCallbackCmd()
{
}
void* paintCallbackCmd::creator()
{
return new paintCallbackCmd();
}
{
if ( callbackId ) {
return MS::kSuccess;
}
if ( stat ) {
callbackId = id;
} else {
}
return stat;
}
{
return plugin.registerCommand( "paintCallback", paintCallbackCmd::creator );
}
{
if ( callbackId ) {
}
return plugin.deregisterCommand( "paintCallback" );
}