FBX C++ API Reference
|
#include <fbxcontrolset.h>
This class contains all methods to either set-up an exported control rig or query information on an imported control rig.
A Control rig is a character manipulation tool that lets you change the position and orientation of a character to create or alter animation.
This class also contains some methods to manipulate the FbxEffector and FbxControlSetLink.
The FbxControlSet class contains FK rig (Forward Kinematics) and IK rig (Inverse Kinematics) animation. The FK rig is represented by a list of nodes while the IK rig is represented by a list of effectors.
You can access the FK rig with the FbxControlSetLink class, using the functions FbxControlSet::SetControlSetLink() and FbxControlSet::GetControlSetLink().
You can access the IK rig with the FbxEffector class, using the functions FbxControlSet::SetEffector() and FbxControlSet::GetEffector().
Definition at line 185 of file fbxcontrolset.h.
Public Types | |
enum | EType { eNone, eFkIk, eIkOnly } |
Control rig type. More... | |
Public Member Functions | |
void | Reset () |
Reset to default values. More... | |
void | SetType (EType pType) |
Set type as given. More... | |
EType | GetType () const |
Get type. More... | |
void | SetUseAxis (bool pUseAxis) |
Set use axis flag as given. More... | |
bool | GetUseAxis () const |
Get use axis flag. More... | |
void | SetLockTransform (bool pLockTransform) |
Set lock transform flag as given. More... | |
bool | GetLockTransform () const |
Get lock transform flag. More... | |
void | SetLock3DPick (bool pLock3DPick) |
Set lock 3D pick flag as given. More... | |
bool | GetLock3DPick () const |
Get lock 3D pick flag. More... | |
bool | SetControlSetLink (FbxCharacter::ENodeId pCharacterNodeId, const FbxControlSetLink &pControlSetLink) |
Set a control set link for a character node ID. More... | |
bool | GetControlSetLink (FbxCharacter::ENodeId pCharacterNodeId, FbxControlSetLink *pControlSetLink=((void *) 0)) const |
Get the control set link associated with a character node ID. More... | |
bool | SetEffector (FbxEffector::ENodeId pEffectorNodeId, FbxEffector pEffector) |
Set an effector node for an effector node ID. More... | |
bool | GetEffector (FbxEffector::ENodeId pEffectorNodeId, FbxEffector *pEffector=((void *) 0)) |
Get the effector associated with an effector node ID. More... | |
bool | SetEffectorAux (FbxEffector::ENodeId pEffectorNodeId, FbxNode *pNode, FbxEffector::ESetId pEffectorSetId=FbxEffector::eAux1Set) |
Set an auxiliary effector node for an effector node ID. More... | |
bool | GetEffectorAux (FbxEffector::ENodeId pEffectorNodeId, FbxNode **pNode=((void *) 0), FbxEffector::ESetId pEffectorSetId=FbxEffector::eAux1Set) const |
Get the auxiliary effector associated with an effector node ID. More... | |
Static Public Member Functions | |
static char * | GetEffectorNodeName (FbxEffector::ENodeId pEffectorNodeId) |
Get the name associated with an effector node ID. More... | |
static FbxEffector::ENodeId | GetEffectorNodeId (char *pEffectorNodeName) |
Get ID associated with an effector node name. More... | |
enum EType |
Control rig type.
Enumerator | |
---|---|
eNone | |
eFkIk | |
eIkOnly |
Definition at line 198 of file fbxcontrolset.h.
void Reset | ( | ) |
Reset to default values.
Reset all effector and control set links.
void SetType | ( | EType | pType | ) |
Set type as given.
pType | The given type. |
EType GetType | ( | ) | const |
Get type.
void SetUseAxis | ( | bool | pUseAxis | ) |
Set use axis flag as given.
pUseAxis | The given use axis flag. |
bool GetUseAxis | ( | ) | const |
Get use axis flag.
void SetLockTransform | ( | bool | pLockTransform | ) |
Set lock transform flag as given.
pLockTransform | The given lock transform flag. |
bool GetLockTransform | ( | ) | const |
Get lock transform flag.
void SetLock3DPick | ( | bool | pLock3DPick | ) |
Set lock 3D pick flag as given.
pLock3DPick | The given lock 3D pick flag. |
bool GetLock3DPick | ( | ) | const |
Get lock 3D pick flag.
bool SetControlSetLink | ( | FbxCharacter::ENodeId | pCharacterNodeId, |
const FbxControlSetLink & | pControlSetLink | ||
) |
Set a control set link for a character node ID.
pCharacterNodeId | Character node ID. |
pControlSetLink | Control set link to be associated with the Character node ID. |
true
if successful, false
otherwise. bool GetControlSetLink | ( | FbxCharacter::ENodeId | pCharacterNodeId, |
FbxControlSetLink * | pControlSetLink = ((void *) 0) |
||
) | const |
Get the control set link associated with a character node ID.
pCharacterNodeId | Requested character node ID. |
pControlSetLink | Optional pointer that returns the control set link if the function succeeds. |
true
if successful, false
otherwise. bool SetEffector | ( | FbxEffector::ENodeId | pEffectorNodeId, |
FbxEffector | pEffector | ||
) |
Set an effector node for an effector node ID.
pEffectorNodeId | Effector node ID. |
pEffector | Effector to be associated with the effector node ID. |
true
if successful, false
otherwise. bool GetEffector | ( | FbxEffector::ENodeId | pEffectorNodeId, |
FbxEffector * | pEffector = ((void *) 0) |
||
) |
Get the effector associated with an effector node ID.
pEffectorNodeId | ID of requested effector node. |
pEffector | Optional pointer that returns the effector if the function succeeds. |
true
if successful, false
otherwise. bool SetEffectorAux | ( | FbxEffector::ENodeId | pEffectorNodeId, |
FbxNode * | pNode, | ||
FbxEffector::ESetId | pEffectorSetId = FbxEffector::eAux1Set |
||
) |
Set an auxiliary effector node for an effector node ID.
pEffectorNodeId | Effector node ID. |
pNode | Auxiliary effector node to be associated with the effector node ID. |
pEffectorSetId | Effector set ID. Set to FbxEffector::eAux1Set by default. |
true
if successful, false
otherwise. bool GetEffectorAux | ( | FbxEffector::ENodeId | pEffectorNodeId, |
FbxNode ** | pNode = ((void *) 0) , |
||
FbxEffector::ESetId | pEffectorSetId = FbxEffector::eAux1Set |
||
) | const |
Get the auxiliary effector associated with an effector node ID.
pEffectorNodeId | ID of requested auxiliary effector node. |
pNode | Optional pointer that returns the auxiliary effector node if the function succeeds. |
pEffectorSetId | Effector set ID. Set to FbxEffector::eAux1Set by default. |
true
if successful, false
otherwise.
|
static |
Get the name associated with an effector node ID.
pEffectorNodeId | Effector node ID. |
|
static |
Get ID associated with an effector node name.
pEffectorNodeName | Effector node name. |