#include <maya/MFnPlugin.h>
#include <maya/MSceneMessage.h>
#include <maya/MStatus.h>
#include <maya/MPxCommand.h>
#include <maya/MMessage.h>
#include <maya/MGlobal.h>
#include <maya/MFileIO.h>
#include <maya/MCallbackIdArray.h>
{
public:
static void preOpenFunc(void* clientData);
static void preImportFunc(void* clientData);
static void preSaveFunc(void* clientData);
static void preExportFunc(void* clientData);
static void preReferenceFunc(void* clientData);
static void *creator();
private:
};
void PreLoad::preOpenFunc(void* clientData)
{
MString msg =
"FILE TO BE OPENED IS ";
msg += ( status == MS::kSuccess) ? file : "ERROR: Could not be retrieved" ;
}
void PreLoad::preImportFunc(void* clientData)
{
MString msg =
"PRE IMPORT FILE IS ";
msg += ( status == MS::kSuccess) ? file : "ERROR: Could not be retrieved" ;
}
void PreLoad::preSaveFunc(void* clientData)
{
MString msg =
"FILE TO BE SAVED IS";
msg += ( status == MS::kSuccess) ? file : "ERROR: File name could not be retrieved" ;
}
void PreLoad::preExportFunc(void* clientData)
{
MString msg =
"FILE TO BE EXPORTED IS";
msg += ( status == MS::kSuccess) ? file : "ERROR: File name could not be retrieved" ;
}
void PreLoad::preReferenceFunc(void* clientData)
{
MString msg =
"FILE TO BE REFERENCED IS";
msg += ( status == MS::kSuccess) ? file : "ERROR: File name could not be retrieved" ;
}
{
return status ;
}
void* PreLoad::creator()
{
return new PreLoad;
}
{
return ids;
}
{
MFnPlugin pluginFn(obj, PLUGIN_COMPANY,
"6.0");
status = pluginFn.registerCommand("fileIOMsgCmd", PreLoad::creator);
if( !status)
status.
perror(
"register Command failed");
return status;
}
{
status = pluginFn.deregisterCommand( "fileIOMsgCmd");
return status;
}