24 #ifndef PXRUSDMAYA_STAGE_NODE_H
25 #define PXRUSDMAYA_STAGE_NODE_H
29 #include "usdMaya/api.h"
33 #include "pxr/base/tf/staticTokens.h"
35 #include <maya/MDataBlock.h>
36 #include <maya/MObject.h>
37 #include <maya/MPlug.h>
38 #include <maya/MPxNode.h>
39 #include <maya/MStatus.h>
40 #include <maya/MString.h>
41 #include <maya/MTypeId.h>
44 PXR_NAMESPACE_OPEN_SCOPE
47 #define PXRUSDMAYA_STAGE_NODE_TOKENS \
48 ((MayaTypeName, "pxrUsdStageNode"))
52 PXRUSDMAYA_STAGE_NODE_TOKENS);
69 static const MTypeId typeId;
71 static const MString typeName;
75 static MObject filePathAttr;
77 static MObject outUsdStageAttr;
80 static void* creator();
83 static MStatus initialize();
87 MStatus compute(
const MPlug& plug, MDataBlock& dataBlock)
override;
98 PXR_NAMESPACE_CLOSE_SCOPE
Maya dependency node that reads and outputs a USD stage.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.