forked from sideeffects/HoudiniEngineForMaya
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AssetCommand.h
43 lines (32 loc) · 854 Bytes
/
AssetCommand.h
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
#ifndef __AssetCommand_h__
#define __AssetCommand_h__
#include <maya/MPxCommand.h>
#include <maya/MArgDatabase.h>
#include <maya/MSyntax.h>
class SubCommand;
class AssetCommand: public MPxCommand
{
public:
static const char* commandName;
public:
static void* creator();
static MSyntax newSyntax();
private:
static bool getMObjectFromFlag(
const MArgDatabase &argData,
const char* flag,
MObject &obj,
MStatus &status);
public:
AssetCommand();
virtual ~AssetCommand();
MStatus doIt(const MArgList& args);
MStatus redoIt();
MStatus undoIt();
bool isUndoable() const;
private:
MStatus parseArgs(const MArgList &args);
private:
SubCommand* mySubCommand;
};
#endif