forked from sideeffects/HoudiniEngineForMaya
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOutputMaterial.h
More file actions
37 lines (28 loc) · 690 Bytes
/
OutputMaterial.h
File metadata and controls
37 lines (28 loc) · 690 Bytes
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
#ifndef __OutputMaterial_h__
#define __OutputMaterial_h__
#include <HAPI/HAPI_Common.h>
#include <string>
#include <maya/MTime.h>
#include <maya/MDataBlock.h>
#include <maya/MDataHandle.h>
#include <maya/MStatus.h>
class OutputMaterial
{
public:
OutputMaterial(HAPI_NodeId assetId);
MStatus compute(
const MTime &time,
const MPlug &materialPlug,
MDataBlock &data,
MDataHandle &materialHandle
);
private:
void update(MDataHandle &materialHandle);
private:
HAPI_NodeId myAssetId;
std::string myNodePath;
HAPI_NodeId myNodeId;
HAPI_NodeInfo myNodeInfo;
int myMaterialLastCookCount;
};
#endif