Navigation
API > API/Plugins > API/Plugins/RigLogicLib > API/Plugins/RigLogicLib/dna > API/Plugins/RigLogicLib/dna/layers > API/Plugins/RigLogicLib/dna/layers/DefinitionReader
References
Module | RigLogicLib |
Header | /Engine/Plugins/Animation/RigLogic/Source/RigLogicLib/Public/dna/layers/DefinitionReader.h |
Include | #include "dna/layers/DefinitionReader.h" |
std::uint16_t getJointParentIndex
&40;
std::uint16_t index
&41; const
Remarks
The joint hierarchy may be traversed and reconstructed using this function. Example: Joint names: [A, B, C, D, E, F, G, H, I] Hierarchy: [0, 0, 0, 1, 1, 4, 2, 6, 2] Describes the following hierarchy: A
- B | + D | + E | + F
- C
- G | + H
- I
Requesting the parent index of joint 5 (joint name: F) would return 4 (joint name: E). Requesting the parent index of the root joint: 0 (joint name: A) would return the same index 0. An out of bounds request (an index greater than the number of joints returns UINT16_MAX).
Parameters
Name | Description |
---|---|
index | The joint index which parent is being requested. |