stf.bone¶
[ Schema | Category: Node ]
Represents a hierarchy of bones in 3d space. The bones children must also have a type of stf.bone.
Implementations¶
Properties¶
type¶
required Constant: "stf.bone"
tr¶
required Type: array<array<number>>
Default: [[0, 0, 0], [0, 0, 0, 1]]
Array of two sub-arrays containing the translation(XYZ) & rotation(XYZW) relative to the parent
Example:
[
[0, 0, 0],
[0, 0, 0, 1]
]
tr_armature¶
required Type: array<array<number>>
Default: [[0, 0, 0], [0, 0, 0, 1]]
Array of two sub-arrays containing the translation(XYZ) & rotation(XYZW) relative to the armature
Example:
[
[0, 0, 0],
[0, 0, 0, 1]
]
tr_source_of_truth¶
optional Enum: "parent" | "armature"
Whether the translation & rotation relative to the armature or the parent is the source of truth.
connected¶
optional Type: boolean
Default: False
Whether the bone is connected to its parent, if the parent bones tip happens to match this bones translation.
length¶
optional Type: number
translation¶
Warning
Deprecated!optional Type: array<number>
Default: [0, 0, 0]
DEPRECATED! Translation (XYZ) relative to the armature
rotation¶
Warning
Deprecated!optional Type: array<number>
Default: [0, 0, 0, 1]
DEPRECATED! Quaternion rotation (XYZW) relative to the armature
Json Example:¶
{
"type": "stf.bone",
"name": "UpperLeg.L",
"children": [
0,
1
],
"connected": false,
"referenced_resources": [
"f46c1337-a8ac-4193-b067-e2c585e168b0",
"27741c68-8412-43b8-86f5-6497a6fe1efb"
],
"tr_armature": [
[
0.08348827064037323,
0.657925546169281,
-0.04016205668449402
],
[
0.9994208216667175,
0,
0,
0.0340302437543869
]
],
"tr": [
[
0.08348827064037323,
-0.02168225683271885,
-0.024044977501034737
],
[
0.9994208216667175,
0.0,
0.0,
0.03403016924858093
]
],
"tr_source_of_truth": "armature",
"length": 0.3011890649795532
}