AL_USDMaya  0.16.6
USD to Maya Bridge
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
NurbsCurveTranslator.h
1 #pragma once
2 #include "AL/usdmaya/fileio/translators/DagNodeTranslator.h"
3 
4 #include "maya/MObject.h"
5 
6 #include "pxr/usd/usd/stage.h"
7 
8 namespace AL {
9 namespace usdmaya {
10 namespace fileio {
11 namespace translators {
12 
13 //----------------------------------------------------------------------------------------------------------------------
16 //----------------------------------------------------------------------------------------------------------------------
18  : public DagNodeTranslator
19 {
20 public:
21 
24  static MStatus registerType();
25 
32  MObject createNode(const UsdPrim& from, MObject parent, const char* nodeType, const ImporterParams& params) override;
33 
39  static MStatus copyAttributes(const MObject& from, UsdPrim& to, const ExporterParams& params);
40 
47  static UsdPrim exportObject(UsdStageRefPtr stage, MDagPath mayaPath, const SdfPath& usdPath, const ExporterParams& params);
48 };
49 
50 //----------------------------------------------------------------------------------------------------------------------
51 } // translators
52 } // fileio
53 } // usdmaya
54 } // AL
55 //----------------------------------------------------------------------------------------------------------------------
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
static MStatus registerType()
static type registration
MObject createNode(const UsdPrim &from, MObject parent, const char *nodeType, const ImporterParams &params) override
Creates a new maya node of the given type and set attributes based on input prim. ...
static MStatus copyAttributes(const MObject &from, UsdPrim &to, const ExporterParams &params)
Copies data from the maya node onto the usd primitive.
A utility class to transfer nurbs curves between maya and usd.
Definition: NurbsCurveTranslator.h:17
static UsdPrim exportObject(UsdStageRefPtr stage, MDagPath mayaPath, const SdfPath &usdPath, const ExporterParams &params)
exports a nurbs curve to the USD file and returns the created prim