MStatus initializePlugin(MObject obj) { MStatus status; MFnPlugin fnPlugin(obj, "Chad Vernon", "1.0", "Any"); status = fnPlugin.registerCommand(SampleCmd::kName, SampleCmd::creator); CHECK_MSTATUS_AND_RETURN_IT(status); return MS::kSuccess; }
MStatus uninitializePlugin(MObject obj) { MStatus status; MFnPlugin fnPlugin(obj); status = fnPlugin.deregisterCommand(SampleCmd::kName); CHECK_MSTATUS_AND_RETURN_IT(status); return MS::kSuccess; }
MStatus uninitializePlugin(MObject obj) { MStatus status; MFnPlugin fnPlugin(obj); status = fnPlugin.deregisterCommand("cvJiggle"); CHECK_MSTATUS_AND_RETURN_IT(status); status = fnPlugin.deregisterNode(cvJiggle::id); CHECK_MSTATUS_AND_RETURN_IT(status); return status; }
MStatus initializePlugin(MObject obj) { MStatus status; MFnPlugin fnPlugin(obj, "Derek Williams", "1.1", "Any"); status = fnPlugin.registerNode("cvJiggle", cvJiggle::id, cvJiggle::creator, cvJiggle::initialize, MPxNode::kDeformerNode); CHECK_MSTATUS_AND_RETURN_IT(status); status = fnPlugin.registerCommand("cvJiggle", cvJiggleCmd::creator, cvJiggleCmd::newSyntax); CHECK_MSTATUS_AND_RETURN_IT(status); return status; }
MStatus initializePlugin(MObject mObj) { MStatus status; MFnPlugin fnPlugin(mObj, "Michitaka Inoue", "0.0.1", "Any"); status = fnPlugin.registerCommand( "snapToClosest", SnapToClosest::creator, SnapToClosest::newSyntax ); CHECK_MSTATUS_AND_RETURN_IT(status); return MS::kSuccess; }
MStatus initializePlugin( MObject obj ) { MStatus status; //icons_data_write(); //MGlobal::executeCommand( mel_createShelf() ); MFnPlugin fnPlugin( obj, "Creative Case", "0.51", "Any" ); status = fnPlugin.registerCommand( "polyPaintImporter", polyPaintImporter::creator, polyPaintImporter::newSyntax ); CHECK_MSTATUS_AND_RETURN_IT( status ); return MS::kSuccess; }
MStatus initializePlugin( MObject obj ) { MStatus stat; MFnPlugin fnPlugin( obj, "Marco Giordano", "1.0", "Any"); stat =fnPlugin.registerNode("MG_dotProduct", MTypeId(0x832496),MG_dotProduct::creator, MG_dotProduct::initialize); if( stat != MS::kSuccess ) stat.perror( "could not register the CustomLocator node" ); return stat; }
//uninitialize //----------------------------------------------- MStatus uninitializePlugin(MObject obj) { MStatus status; //initialize plugin functionset MFnPlugin fnPlugin(obj); status = fnPlugin.deregisterCommand("RbRollCmd"); status = fnPlugin.deregisterCommand("SecondCmd"); status = fnPlugin.deregisterNode(RbRoll::id); status = fnPlugin.deregisterNode(RbRollOpenMP::id); status = fnPlugin.deregisterNode(RbRollCUDA::id); status = fnPlugin.deregisterNode(CustomLocator::id); return MStatus::kSuccess; }
//initialize //----------------------------------------------- MStatus initializePlugin(MObject obj) { MStatus status; //initialize plugin functionset MFnPlugin fnPlugin(obj, "Timm Wagener", "1.0", "Any"); status = fnPlugin.registerCommand("RbRollCmd", RbRollCmd::creator); status = fnPlugin.registerCommand("SecondCmd", SecondCmd::creator); status = fnPlugin.registerNode(RbRoll::typeName, RbRoll::id, RbRoll::creator, RbRoll::initialize, MPxNode::kDeformerNode); status = fnPlugin.registerNode(RbRollOpenMP::typeName, RbRollOpenMP::id, RbRollOpenMP::creator, RbRollOpenMP::initialize, MPxNode::kDeformerNode); status = fnPlugin.registerNode(RbRollCUDA::typeName, RbRollCUDA::id, RbRollCUDA::creator, RbRollCUDA::initialize, MPxNode::kDeformerNode); status = fnPlugin.registerNode(CustomLocator::typeName, CustomLocator::id, CustomLocator::creator, CustomLocator::initialize, MPxNode::kLocatorNode); return MStatus::kSuccess; }
MStatus initializePlugin( MObject obj ) { MStatus stat; MFnPlugin fnPlugin( obj, "Marco Giordano", "1.0", "Any"); stat = fnPlugin.registerNode( "MG_vectorGL", MG_vectorGL::typeId, MG_vectorGL::creator, MG_vectorGL::initialize, MPxNode::kLocatorNode ); if( stat != MS::kSuccess ) stat.perror( "could not register the MG_vectorGL node" ); return stat; }
MStatus uninitializePlugin( MObject obj ) { MStatus status; //MGlobal::executeCommand( mel_deleteShelf() ); MFnPlugin fnPlugin( obj ); status = fnPlugin.deregisterCommand( "polyPaintImporter" ); CHECK_MSTATUS_AND_RETURN_IT( status ); return MS::kSuccess; }
MStatus initializePlugin( MObject obj ) { MStatus stat; MFnPlugin fnPlugin( obj, "Marco Giordano", "1.0", "Any"); stat = fnPlugin.registerNode( "MG_curve", MG_curve::typeId, &MG_curve::creator, &MG_curve::initialize ); if( stat != MS::kSuccess ) stat.perror( "could not register the faceRigNode node" ); return stat; }
MStatus uninitializePlugin(MObject mObj) { MFnPlugin fnPlugin(mObj); fnPlugin.deregisterCommand("snapToClosest"); return MS::kSuccess; }
MStatus initializePlugin(MObject mObj) { MFnPlugin fnPlugin(mObj, "Michitaka Inoue", "0.0.1", "Any"); fnPlugin.registerCommand("checkTopology", TopologyChecker::creator, TopologyChecker::newSyntax); return MS::kSuccess; }
MStatus uninitializePlugin(MObject mObj) { MFnPlugin fnPlugin(mObj); fnPlugin.deregisterCommand("checkTopology"); return MS::kSuccess; }