Navigation
API > API/Plugins > API/Plugins/RigLogicLib > API/Plugins/RigLogicLib/DefinitionReader
Description
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).
| Name | getJointParentIndex |
| Type | function |
| Header File | /Engine/Plugins/Animation/RigLogic/Source/RigLogicLib/Public/dna/layers/DefinitionReader.h |
| Include Path | #include "dna/layers/DefinitionReader.h" |
std::uint16_t getJointParentIndex
(
std::uint16_t index
) const
Parameters
| Name | Remarks |
|---|---|
| index | The joint index which parent is being requested. |