DefinitionReader::getJointParentIndex

Index of the requested joint's parent. @note 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.

Windows
MacOS
Linux

References

Module

RigLogicLib

Header

/Engine/Plugins/Animation/RigLogic/Source/RigLogicLib/Public/dna/layers/DefinitionReader.h

Include

#include "dna/layers/DefinitionReader.h"

Syntax

std::uint16_t getJointParentIndex
(
    std::uint16_t index
) const

Remarks

  • 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

Parameter

Description

index

The joint index which parent is being requested.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss