AL_USDMaya  0.16.6
USD to Maya Bridge
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
AL::usdmaya::fileio::NodeFactory Struct Reference

A simple node factory to convert nodes between Maya and USD. More...

#include <NodeFactory.h>

Public Member Functions

 NodeFactory ()
 ctor. Currently initialises the inbuilt translators.
 
 ~NodeFactory ()
 dtor
 
MObject createNode (const UsdPrim &from, const char *const nodeType, MObject parent)
 create a node More...
 
void setImportParams (const ImporterParams *params)
 Some of the translators rely on import settings specified in the import params. Prior to use of this factory, you should set the import params for it to use. More...
 

Detailed Description

A simple node factory to convert nodes between Maya and USD.

Todo:
Phase this class out, and migrate the existing code into the translator framework.

Member Function Documentation

MObject AL::usdmaya::fileio::NodeFactory::createNode ( const UsdPrim &  from,
const char *const  nodeType,
MObject  parent 
)

create a node

Parameters
fromthe prim we are copying the data from
nodeTypecan be one of "transform", "mesh", "nurbsCurve", or "camera".
parentthe parent transform for the Maya data
void AL::usdmaya::fileio::NodeFactory::setImportParams ( const ImporterParams params)
inline

Some of the translators rely on import settings specified in the import params. Prior to use of this factory, you should set the import params for it to use.

Parameters
paramsthe import params

The documentation for this struct was generated from the following file: