-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPluginMain.cpp
50 lines (41 loc) · 1.15 KB
/
PluginMain.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#include <maya/MPxCommand.h>
#include <maya/MFnPlugin.h>
#include <maya/MIOStream.h>
#include <maya/MString.h>
#include <maya/MArgList.h>
#include <maya/MGlobal.h>
#include <maya/MSimple.h>
#include <maya/MDoubleArray.h>
#include <maya/MPoint.h>
#include <maya/MPointArray.h>
#include <maya/MFnNurbsCurve.h>
#include <maya/MDGModifier.h>
#include <maya/MPlugArray.h>
#include <maya/MVector.h>
#include <maya/MFnDependencyNode.h>
#include <maya/MStringArray.h>
#include <list>
#include "LSystemCmd.h"
MStatus initializePlugin( MObject obj )
{
MStatus status = MStatus::kSuccess;
MFnPlugin plugin( obj, "MyPlugin", "1.0", "Any");
// Register Command
status = plugin.registerCommand( "LSystemCmd", LSystemCmd::creator );
if (!status) {
status.perror("registerCommand");
return status;
}
return status;
}
MStatus uninitializePlugin( MObject obj)
{
MStatus status = MStatus::kSuccess;
MFnPlugin plugin( obj );
status = plugin.deregisterCommand( "LSystemCmd" );
if (!status) {
status.perror("deregisterCommand");
return status;
}
return status;
}