2 #include "AL/usdmaya/fileio/translators/DagNodeTranslator.h"
4 #include "maya/MObject.h"
6 #include "pxr/usd/usd/stage.h"
11 namespace translators {
32 MObject
createNode(
const UsdPrim& from, MObject parent,
const char* nodeType,
const ImporterParams& params)
override;
56 void zipUVs(
const float* u,
const float* v,
float* uv,
const size_t count);
57 void unzipUVs(
const float*
const uv,
float*
const u,
float*
const v,
const size_t count);
58 void convert3DArrayTo4DArray(
const float*
const input,
float*
const output,
size_t count);
59 void convertFloatVec3ArrayToDoubleVec3Array(
const float*
const input,
double*
const output,
size_t count);
60 void interleaveIndexedUvData(
float* output,
const float* u,
const float* v,
const int32_t* indices,
const uint32_t numIndices);
61 bool isUvSetDataSparse(
const int32_t* uvCounts,
const uint32_t count);
62 void generateIncrementingIndices(MIntArray& indices,
const size_t count);
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
static UsdPrim exportObject(UsdStageRefPtr stage, MDagPath mayaPath, const SdfPath &usdPath, const ExporterParams ¶ms)
exports a nurbs curve to the USD file and returns the created prim
static MStatus copyAttributes(const MObject &from, UsdPrim &to, const ExporterParams ¶ms)
Copies data from the maya node onto the usd primitive.
parameters for the importer
Definition: ImportParams.h:18
bool attributeHandled(const UsdAttribute &usdAttr) override
import the dynamic attribute import that we are expected to see some extra subdiv animal logic only d...
static MStatus registerType()
static type registration
A class to transfer mesh data between Usd <–> Maya.
Definition: MeshTranslator.h:17
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. ...