AL_USDMaya  0.29.4
USD to Maya Bridge
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends 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, bool parentUnmerged=false)
 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...
 

Static Public Member Functions

static void setupNode (const UsdPrim &from, MObject obj, MObject parent, bool parentUnmerged)
 

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,
bool  parentUnmerged = false 
)

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
parentUnmergedif false, the parent transform will be merged with a shape. If true, the nodes will remain separate
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: