A simple node factory to convert nodes between Maya and USD.
More...
#include <NodeFactory.h>
|
| 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 void | setupNode (const UsdPrim &from, MObject obj, MObject parent, bool parentUnmerged) |
|
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.
MObject AL::usdmaya::fileio::NodeFactory::createNode |
( |
const UsdPrim & |
from, |
|
|
const char *const |
nodeType, |
|
|
MObject |
parent, |
|
|
bool |
parentUnmerged = false |
|
) |
| |
create a node
- Parameters
-
from | the prim we are copying the data from |
nodeType | can be one of "transform", "mesh", "nurbsCurve", or "camera". |
parent | the parent transform for the Maya data |
parentUnmerged | if 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
-
The documentation for this struct was generated from the following file: