This reference page is linked to from the following overview topics: FBX Scenes, Merging Two Scenes, List of Python Fbx classes.
#include <fbxcharacterpose.h>
A character pose is a character and an associated hierarchy of nodes.
Only the default position of the nodes is considered, the animation data is ignored.
You can access the content of a character pose, using the functions FbxCharacterPose::GetOffset(), FbxCharacterPose::GetLocalPosition(), and FbxCharacterPose::GetGlobalPosition(). Their source code is provided inline as examples on how to access the character pose data.
To create a character pose, You must first create a hierarchy of nodes under the root node provided by function FbxCharacterPose::GetRootNode(). Then, feed this hierarchy of nodes into the character returned by function FbxCharacterPose::GetCharacter(). Offsets are set in the character links. Local positions are set using FbxNode::SetDefaultT(), FbxNode::SetDefaultR(), and FbxNode::SetDefaultS().
To set local positions from global positions:
Definition at line 48 of file fbxcharacterpose.h.
Public Member Functions |
|
| void | Reset () |
| Reset to an empty character pose. |
|
| FbxNode * | GetRootNode () const |
| Get the root node. |
|
| FbxCharacter * | GetCharacter () const |
| Get the character. |
|
| bool | GetOffset (FbxCharacter::ENodeId pCharacterNodeId, FbxAMatrix &pOffset) const |
| Get offset matrix for a given character
node. |
|
| bool | GetLocalPosition (FbxCharacter::ENodeId pCharacterNodeId, FbxVector4 &pLocalT, FbxVector4 &pLocalR, FbxVector4 &pLocalS) const |
| Get local position for a given character
node. |
|
| bool | GetGlobalPosition (FbxCharacter::ENodeId pCharacterNodeId, FbxAMatrix &pGlobalPosition) const |
| Get global position for a given character
node. |
|
| FbxScene * | GetPoseScene () const |
| Retrieve the pose scene used by this
character pose. |
|
| void Reset | ( | ) |
Reset to an empty character pose.
| FbxNode* GetRootNode | ( | ) | const |
| FbxCharacter* GetCharacter | ( | ) | const |
| bool GetOffset | ( | FbxCharacter::ENodeId | pCharacterNodeId, |
| FbxAMatrix & | pOffset | ||
| ) | const |
Get offset matrix for a given character node.
| pCharacterNodeId | Character Node ID. |
| pOffset | Receives offset matrix. |
true if successful, false
otherwise.| bool GetLocalPosition | ( | FbxCharacter::ENodeId | pCharacterNodeId, |
| FbxVector4 & | pLocalT, | ||
| FbxVector4 & | pLocalR, | ||
| FbxVector4 & | pLocalS | ||
| ) | const |
Get local position for a given character node.
| pCharacterNodeId | Character Node ID. |
| pLocalT | Receives local translation vector. |
| pLocalR | Receives local rotation vector. |
| pLocalS | Receives local scaling vector. |
true if successful, false
otherwise.| bool GetGlobalPosition | ( | FbxCharacter::ENodeId | pCharacterNodeId, |
| FbxAMatrix & | pGlobalPosition | ||
| ) | const |
Get global position for a given character node.
| pCharacterNodeId | Character Node ID. |
| pGlobalPosition | Receives global position. |
true if successful, false
otherwise.| FbxScene* GetPoseScene | ( | ) | const |
Retrieve the pose scene used by this character pose.