18 #include "../../Api.h"
20 #include <AL/usdmaya/ForwardDeclares.h>
21 #include "AL/usdmaya/fileio/translators/DgNodeTranslator.h"
22 #include "maya/MObject.h"
23 #include <pxr/base/tf/token.h>
28 namespace translators {
50 MObject
createNode(
const UsdPrim& from, MObject parent,
const char* nodeType,
const ImporterParams& params)
override;
66 {
return MS::kSuccess; }
75 static void initialiseDefaultShadingGroup(MObject& target);
A class to transfer dag node data between Usd <–> Maya.
Definition: DagNodeTranslator.h:33
AL_USDMAYA_PUBLIC MStatus copyAttributes(const UsdPrim &from, MObject to, const ImporterParams ¶ms)
helper method to copy attributes from the UsdPrim to the Maya node
parameters for the exporter. These parameters are constructed by any command or file translator that ...
Definition: ExportParams.h:35
parameters for the importer
Definition: ImportParams.h:40
static MObject m_initialShadingGroup
Definition: DagNodeTranslator.h:80
static AL_USDMAYA_PUBLIC MStatus registerType()
static type registration
AL_USDMAYA_PUBLIC 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_visible
the visibility attribute common to all dag nodes
Definition: DagNodeTranslator.h:83
static MStatus copyAttributes(const MObject &from, UsdPrim &to, const ExporterParams ¶ms)
Copies data from the maya node onto the usd primitive.
Definition: DagNodeTranslator.h:65
AL_USDMAYA_PUBLIC MStatus applyDefaultMaterialOnShape(MObject shape)
assign the default material to the shape specified
Utility class that transfers DgNodes between Maya and USD.
Definition: DgNodeTranslator.h:48