slopeShader/slopeShader.cpp
#include <maya/MFnPlugin.h>
#include <maya/MGlobal.h>
#include "slopeShaderBehavior.h"
#include "slopeShaderNode.h"
{
MFnPlugin plugin( obj, PLUGIN_COMPANY,
"4.5",
"Any");
const MString UserClassify(
"utility/color" );
MString command(
"if( `window -exists createRenderNodeWindow` ) {refreshCreateRenderNodeWindow(\"" );
command += UserClassify;
command += "\");}\n";
slopeShaderNode::creator, slopeShaderNode::initialize,
slopeShaderNode::kDependNode, &UserClassify );
slopeShaderBehavior::creator);
return status;
}
{
const MString UserClassify(
"utility/color" );
MString command(
"if( `window -exists createRenderNodeWindow` ) {refreshCreateRenderNodeWindow(\"" );
command += UserClassify;
command += "\");}\n";
plugin.deregisterNode( slopeShaderNode::id );
plugin.deregisterDragAndDropBehavior( "slopeShaderBehavior" );
return status;
}