Base class for a profile of a virtual skeleton used as a target for retargeting.
This resource is used in EditorScenePostImport. Some parameters are referring to bones in Skeleton3D, Skin, Animation, and some other nodes are rewritten based on the parameters of SkeletonProfile.
Note: These parameters need to be set only when creating a custom profile. In SkeletonProfileHumanoid, they are defined internally as read-only values.
The amount of bones in retargeting section's BoneMap editor. For example, SkeletonProfileHumanoid has 56 bones.
The size of elements in BoneMap updates when changing this property in it's assigned SkeletonProfile.
The amount of groups of bones in retargeting section's BoneMap editor. For example, SkeletonProfileHumanoid has 4 groups.
This property exists to separate the bone list into several sections in the editor.
A bone name that will be used as the root bone in AnimationTree. This should be the bone of the parent of hips that exists at the world origin.
A bone name which will use model's height as the coefficient for normalization. For example, SkeletonProfileHumanoid defines it as Hips.
Returns the name of the bone at bone_idx that will be the key name in the BoneMap.
In the retargeting process, the returned bone name is the bone name of the target skeleton.
Returns the name of the bone which is the parent to the bone at bone_idx. The result is empty if the bone has no parent.
Returns the name of the group at group_idx that will be the drawing group in the BoneMap editor.
Returns the offset of the bone at bone_idx that will be the button position in the BoneMap editor.
This is the offset with origin at the top left corner of the square.
Returns the texture of the group at group_idx that will be the drawing group background image in the BoneMap editor.
Returns whether the bone at bone_idx is required for retargeting.
This value is used by the bone map editor. If this method returns true, and no bone is assigned, the handle color will be red on the bone map editor.
Sets the name of the bone at bone_idx that will be the key name in the BoneMap.
In the retargeting process, the setting bone name is the bone name of the target skeleton.
Sets the bone with name bone_parent as the parent of the bone at bone_idx. If an empty string is passed, then the bone has no parent.
Sets the name of the group at group_idx that will be the drawing group in the BoneMap editor.
Sets the offset of the bone at bone_idx that will be the button position in the BoneMap editor.
This is the offset with origin at the top left corner of the square.
Sets the tail direction of the bone at bone_idx.
Note: This only specifies the method of calculation. The actual coordinates required should be stored in an external skeleton, so the calculation itself needs to be done externally.
Sets the texture of the group at group_idx that will be the drawing group background image in the BoneMap editor.