Ejemplo n.º 1
0
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;
}
Ejemplo n.º 2
0
MStatus uninitializePlugin(MObject obj) {
  MStatus status;

  MFnPlugin fnPlugin(obj);

  status = fnPlugin.deregisterCommand(SampleCmd::kName);
  CHECK_MSTATUS_AND_RETURN_IT(status);

  return MS::kSuccess;
}
Ejemplo n.º 3
0
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;
}
Ejemplo n.º 4
0
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;
}
Ejemplo n.º 5
0
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;
}
Ejemplo n.º 7
0
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; 
}
Ejemplo n.º 8
0
//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;
}
Ejemplo n.º 9
0
//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;
}
Ejemplo n.º 10
0
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;
}
Ejemplo n.º 12
0
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;
}
Ejemplo n.º 13
0
MStatus uninitializePlugin(MObject mObj)
{
    MFnPlugin fnPlugin(mObj);
    fnPlugin.deregisterCommand("snapToClosest");
    return MS::kSuccess;
}
Ejemplo n.º 14
0
MStatus initializePlugin(MObject mObj)
{
    MFnPlugin fnPlugin(mObj, "Michitaka Inoue", "0.0.1", "Any");
    fnPlugin.registerCommand("checkTopology", TopologyChecker::creator, TopologyChecker::newSyntax);
    return MS::kSuccess;
}
Ejemplo n.º 15
0
MStatus uninitializePlugin(MObject mObj)
{
    MFnPlugin fnPlugin(mObj);
    fnPlugin.deregisterCommand("checkTopology");
    return MS::kSuccess;
}