2 #include "AL/usdmaya/Common.h"
3 #include "AL/maya/NodeHelper.h"
4 #include "maya/MPxTransform.h"
63 :
public MPxTransform,
71 AL_MAYA_DECLARE_NODE();
76 AL_DECL_ATTRIBUTE(primPath);
77 AL_DECL_ATTRIBUTE(inStageData);
78 AL_DECL_ATTRIBUTE(time);
79 AL_DECL_ATTRIBUTE(timeOffset);
80 AL_DECL_ATTRIBUTE(timeScalar);
81 AL_DECL_ATTRIBUTE(localTranslateOffset);
82 AL_DECL_ATTRIBUTE(pushToPrim);
83 AL_DECL_ATTRIBUTE(readAnimatedValues);
88 AL_DECL_ATTRIBUTE(outStageData);
89 AL_DECL_ATTRIBUTE(outTime);
103 UsdPrim
getUsdPrim(MDataBlock& dataBlock)
const;
108 {
return kParallel; }
116 MStatus validateAndSetValue(
const MPlug& plug,
const MDataHandle& handle,
const MDGContext& context)
override;
117 MPxTransformationMatrix* createTransformationMatrix()
override;
118 MStatus connectionMade(
const MPlug &plug,
const MPlug &otherPlug,
bool asSrc)
override;
119 MStatus connectionBroken(
const MPlug &plug,
const MPlug &otherPlug,
bool asSrc)
override;
120 MStatus compute(
const MPlug &plug, MDataBlock &datablock)
override;
121 void postConstructor()
override;
127 void updateTransform(MDataBlock& dataBlock);
128 bool isStageValid()
const;
This is a little helper object designed to reduce the amount of boilerplate GUI code you need to jump...
Definition: NodeHelper.h:175