forked from sideeffects/HoudiniEngineForMaya
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSyncOutputGeometryPart.h
55 lines (45 loc) · 1.47 KB
/
SyncOutputGeometryPart.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
45
46
47
48
49
50
51
52
53
54
55
#ifndef __SyncOutputGeometryPart_h__
#define __SyncOutputGeometryPart_h__
#include <maya/MDagModifier.h>
#include <maya/MPlug.h>
#include "AssetSubCommand.h"
class SyncOutputGeometryPart : public AssetSubCommand
{
public:
SyncOutputGeometryPart(
const MPlug &outputPlug,
const MObject & objectTransform
);
virtual ~SyncOutputGeometryPart();
virtual MStatus doIt();
virtual MStatus undoIt();
virtual MStatus redoIt();
virtual bool isUndoable() const;
protected:
MStatus createOutputPart(
const MObject &objectTransform,
const MString &partName,
MObject &partTransform
);
MStatus createOutputMaterial(
const MPlug &materialPlug,
const MObject &partTransform
);
MStatus createOutputParticle(
const MObject &partTransform,
const MPlug &particlePlug
);
MStatus createOutputCurves(
MPlug curvesPlug,
const MObject &partTransform,
bool isBezier
);
protected:
//This is the output plug from the asset node that represents an object
//eg. (assetNode.objects[1])
const MPlug myOutputPlug;
//the transform of the HAPI Asset
const MObject myObjectTransform;
MDagModifier myDagModifier;
};
#endif