A utility class to transfer transform nodes between Maya and USD.
More...
#include <TransformTranslator.h>
|
| AL_USDMAYA_PUBLIC 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. More...
|
| |
| AL_USDMAYA_PUBLIC MStatus | copyAttributes (const UsdPrim &from, MObject to, const ImporterParams ¶ms) |
| | helper method to copy attributes from the UsdPrim to the Maya node More...
|
| |
| AL_USDMAYA_PUBLIC MStatus | copyAttributes (const UsdPrim &from, MObject to, const ImporterParams ¶ms) |
| | helper method to copy attributes from the UsdPrim to the Maya node More...
|
| |
| AL_USDMAYA_PUBLIC MStatus | applyDefaultMaterialOnShape (MObject shape) |
| | assign the default material to the shape specified More...
|
| |
| AL_USDMAYA_PUBLIC MStatus | copyAttributes (const UsdPrim &from, MObject to, const ImporterParams ¶ms) |
| | helper method to copy attributes from the UsdPrim to the Maya node More...
|
| |
| virtual AL_USDMAYA_PUBLIC bool | attributeHandled (const UsdAttribute &usdAttr) |
| | A temporary solution. Given a custom attribute, if a translator handles it somehow (i.e. lazy approach to not creating a schema), then overload this method and return true on the attribute you are handling. This will prevent the attribute from being imported/exported as a dynamic attribute. More...
|
| |
|
| static AL_USDMAYA_PUBLIC MStatus | registerType () |
| | static type registration More...
|
| |
| static AL_USDMAYA_PUBLIC MStatus | copyAttributes (const MObject &from, UsdPrim &to, const ExporterParams ¶ms) |
| | Copies data from the maya node onto the usd primitive. More...
|
| |
| static AL_USDMAYA_PUBLIC void | copyAttributeValue (const MPlug &attr, UsdAttribute &usdAttr, const UsdTimeCode &timeCode) |
| | copy the attribute value from the plug specified, at the given time, and store the data on the usdAttr. More...
|
| |
| static AL_USDMAYA_PUBLIC bool | getAnimationVariables (TransformOperation operation, MObject &attribute, double &conversionFactor) |
| | retrieve the corresponding maya attribute for the transform operation. More...
|
| |
| static AL_USDMAYA_PUBLIC MStatus | registerType () |
| | static type registration More...
|
| |
| static MStatus | copyAttributes (const MObject &from, UsdPrim &to, const ExporterParams ¶ms) |
| | Copies data from the maya node onto the usd primitive. More...
|
| |
|
static AL_USDMAYA_PUBLIC void | initialiseDefaultShadingGroup (MObject &target) |
| |
| static AL_USDMAYA_PUBLIC MStatus | registerType () |
| | static type registration More...
|
| |
| static AL_USDMAYA_PUBLIC MStatus | copyAttributes (const MObject &from, UsdPrim &to, const ExporterParams ¶ms) |
| | Copies data from the maya node onto the usd primitive. More...
|
| |
A utility class to transfer transform nodes between Maya and USD.
| AL_USDMAYA_PUBLIC MStatus AL::usdmaya::fileio::translators::TransformTranslator::copyAttributes |
( |
const UsdPrim & |
from, |
|
|
MObject |
to, |
|
|
const ImporterParams & |
params |
|
) |
| |
helper method to copy attributes from the UsdPrim to the Maya node
- Parameters
-
| from | the UsdPrim to copy the data from |
| to | the maya node to copy the data to |
| params | the importer params to determine what to import |
- Returns
- MS::kSuccess if ok
| static AL_USDMAYA_PUBLIC MStatus AL::usdmaya::fileio::translators::TransformTranslator::copyAttributes |
( |
const MObject & |
from, |
|
|
UsdPrim & |
to, |
|
|
const ExporterParams & |
params |
|
) |
| |
|
static |
Copies data from the maya node onto the usd primitive.
- Parameters
-
| from | the maya node to copy the data from |
| to | the USD prim to copy the attributes to |
| params | the exporter params to determine what should be exported |
- Returns
- MS::kSuccess if ok
| static AL_USDMAYA_PUBLIC void AL::usdmaya::fileio::translators::TransformTranslator::copyAttributeValue |
( |
const MPlug & |
attr, |
|
|
UsdAttribute & |
usdAttr, |
|
|
const UsdTimeCode & |
timeCode |
|
) |
| |
|
static |
copy the attribute value from the plug specified, at the given time, and store the data on the usdAttr.
- Parameters
-
| attr | the attribute to be copied |
| usdAttr | the attribute to copy the data to |
| timeCode | the timecode to use when setting the data |
| AL_USDMAYA_PUBLIC MObject AL::usdmaya::fileio::translators::TransformTranslator::createNode |
( |
const UsdPrim & |
from, |
|
|
MObject |
parent, |
|
|
const char * |
nodeType, |
|
|
const ImporterParams & |
params |
|
) |
| |
|
overridevirtual |
Creates a new maya node of the given type and set attributes based on input prim.
- Parameters
-
| from | the UsdPrim to copy the data from |
| parent | the parent Dag node to parent the newly created object under |
| nodeType | the maya node type to create |
| params | the importer params that determines what will be imported |
- Returns
- the newly created node
Reimplemented from AL::usdmaya::fileio::translators::DagNodeTranslator.
| static AL_USDMAYA_PUBLIC bool AL::usdmaya::fileio::translators::TransformTranslator::getAnimationVariables |
( |
TransformOperation |
operation, |
|
|
MObject & |
attribute, |
|
|
double & |
conversionFactor |
|
) |
| |
|
static |
retrieve the corresponding maya attribute for the transform operation.
- Parameters
-
| operation | the transform operation we want the maya attribute handle for |
| attribute | the returned attribute handle |
| conversionFactor | a scaling that should be applied to the maya attributes to put them into the correct units for USD |
- Returns
- true if the attribute is known to be animated, and the attribute/conversionFactor contain valid results
| static AL_USDMAYA_PUBLIC MStatus AL::usdmaya::fileio::translators::TransformTranslator::registerType |
( |
| ) |
|
|
static |
static type registration
- Returns
- MS::kSuccess if ok
The documentation for this class was generated from the following file: