A utility class to help with exporting animated plugs from maya.
More...
#include <AnimationTranslator.h>
|
void | addPlug (const MPlug &plug, const UsdAttribute &attribute, const bool assumeExpressionIsAnimated) |
| add a plug to the animation translator (if the plug is animated) More...
|
|
void | addPlug (const MPlug &plug, const UsdAttribute &attribute, const float scale, const bool assumeExpressionIsAnimated) |
| add a plug to the animation translator (if the plug is animated) More...
|
|
void | exportAnimation (const ExporterParams ¶ms) |
| After the scene has been exported, call this method to export the animation data on various attributes. More...
|
|
|
static bool | isAnimated (const MObject &node, const MObject &attr, const bool assumeExpressionIsAnimated=true) |
| returns true if the attribute is animated More...
|
|
static bool | isAnimated (MPlug attr, bool assumeExpressionIsAnimated=true) |
| returns true if the attribute is animated More...
|
|
A utility class to help with exporting animated plugs from maya.
void AL::usdmaya::fileio::AnimationTranslator::addPlug |
( |
const MPlug & |
plug, |
|
|
const UsdAttribute & |
attribute, |
|
|
const bool |
assumeExpressionIsAnimated |
|
) |
| |
|
inline |
add a plug to the animation translator (if the plug is animated)
- Parameters
-
plug | the maya attribute to test |
attribute | the corresponding maya attribute to write the anim data into if the plug is animated |
assumeExpressionIsAnimated | if we encounter an expression, assume that the attribute is animated (true) or static (false). |
void AL::usdmaya::fileio::AnimationTranslator::addPlug |
( |
const MPlug & |
plug, |
|
|
const UsdAttribute & |
attribute, |
|
|
const float |
scale, |
|
|
const bool |
assumeExpressionIsAnimated |
|
) |
| |
|
inline |
add a plug to the animation translator (if the plug is animated)
- Parameters
-
plug | the maya attribute to test |
attribute | the corresponding maya attribute to write the anim data into if the plug is animated |
scale | a scale to apply to convert units if needed |
assumeExpressionIsAnimated | if we encounter an expression, assume that the attribute is animated (true) or static (false). |
void AL::usdmaya::fileio::AnimationTranslator::exportAnimation |
( |
const ExporterParams & |
params | ) |
|
After the scene has been exported, call this method to export the animation data on various attributes.
- Parameters
-
static bool AL::usdmaya::fileio::AnimationTranslator::isAnimated |
( |
const MObject & |
node, |
|
|
const MObject & |
attr, |
|
|
const bool |
assumeExpressionIsAnimated = true |
|
) |
| |
|
inlinestatic |
returns true if the attribute is animated
- Parameters
-
node | the node which contains the attribute to test |
attr | the attribute handle |
assumeExpressionIsAnimated | if we encounter an expression, assume that the attribute is animated (true) or static (false). |
- Returns
- true if the attribute was found to be animated
static bool AL::usdmaya::fileio::AnimationTranslator::isAnimated |
( |
MPlug |
attr, |
|
|
bool |
assumeExpressionIsAnimated = true |
|
) |
| |
|
static |
returns true if the attribute is animated
- Parameters
-
attr | the attribute to test |
assumeExpressionIsAnimated | if we encounter an expression, assume that the attribute is animated (true) or static (false). |
- Returns
- true if the attribute was found to be animated
The documentation for this struct was generated from the following file: