forked from sideeffects/HoudiniEngineForMaya
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AssetSubCommandSync.h
44 lines (32 loc) · 964 Bytes
/
AssetSubCommandSync.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
44
#ifndef __AssetSubCommandSync_h__
#define __AssetSubCommandSync_h__
#include "SubCommand.h"
#include <maya/MObject.h>
#include <maya/MDagModifier.h>
#include <vector>
class AssetSubCommandSync : public SubCommandAsset
{
public:
AssetSubCommandSync(
const MObject &assetNodeObj
);
virtual ~AssetSubCommandSync();
void setSyncAttributes();
void setSyncOutputs();
void setSyncOutputHidden();
void setSyncOutputTemplatedGeos();
virtual MStatus doIt();
virtual MStatus redoIt();
virtual MStatus undoIt();
virtual bool isUndoable() const;
protected:
bool mySyncAll;
bool mySyncAttributes;
bool mySyncOutputs;
bool mySyncOutputHidden;
bool mySyncOutputTemplatedGeos;
MDagModifier myDagModifier;
typedef std::vector<SubCommand*> AssetSyncs;
AssetSyncs myAssetSyncs;
};
#endif