Module: armature

API methods to control armature objects.

Summary

Methods

Detailed Description

Methods

get_bone_tsr(armobj, bone_name, destopt) → (nullable) {TSR}

Get translation, scale and rotation quaternion of the armature's bone, defined in armature space.
Parameters:
Name Type Attributes Description
armobj Object3D Armature object
bone_name String Bone name
dest TSR <optional>
Destination vector
Returns:
Destination vector
Type
TSR
Source:

get_bone_tsr_rel(armobj, bone_name, destopt) → (nullable) {TSR}

Get translation, scale and rotation quaternion of the armature's bone, defined in parent bone space.
Parameters:
Name Type Attributes Description
armobj Object3D Armature object
bone_name String Bone name
dest TSR <optional>
Destination vector
Returns:
Destination vector
Type
TSR
Source:

set_bone_tsr(armobj, bone_name, tsr)

Set translation, scale and rotation quaternion of the armature's bone, defined in armature space.
Parameters:
Name Type Description
armobj Object3D Armature object
bone_name String Bone name
tsr TSR Translation, scale and rotation quaternion
Source:

set_bone_tsr_rel(armobj, bone_name, tsr)

Set translation, scale and rotation quaternion of the armature's bone, defined in parent bone space.
Parameters:
Name Type Description
armobj Object3D Armature object
bone_name String Bone name
tsr TSR Translation, scale and rotation quaternion
Source: