2 #include "AL/usdmaya/fileio/translators/DgNodeTranslator.h"
3 #include "maya/MObject.h"
4 #include <pxr/base/tf/token.h>
9 namespace translators {
29 MObject
createNode(
const UsdPrim& from, MObject parent,
const char* nodeType,
const ImporterParams& params)
override;
44 {
return MS::kSuccess; }
A class to transfer dag node data between Usd <–> Maya.
Definition: DagNodeTranslator.h:14
parameters for the exporter. These parameters are constructed by any command or file translator that ...
Definition: ExportParams.h:17
parameters for the importer
Definition: ImportParams.h:18
MStatus applyDefaultMaterialOnShape(MObject shape)
assign the default material to the shape specified
MObject createNode(const UsdPrim &from, MObject parent, const char *nodeType, const ImporterParams ¶ms) override
Creates a new maya node of the given type and set attributes based on input prim. ...
static MObject m_initialShadingGroup
Definition: DagNodeTranslator.h:54
static MStatus registerType()
static type registration
MStatus copyAttributes(const UsdPrim &from, MObject to, const ImporterParams ¶ms)
helper method to copy attributes from the UsdPrim to the Maya node
static MObject m_visible
the visibility attribute common to all dag nodes
Definition: DagNodeTranslator.h:57
static MStatus copyAttributes(const MObject &from, UsdPrim &to, const ExporterParams ¶ms)
Copies data from the maya node onto the usd primitive.
Definition: DagNodeTranslator.h:43
Utility class that transfers DgNodes between Maya and USD.
Definition: DgNodeTranslator.h:30