Skip to content

hm5-types (source format) / Bone

Interface: Bone ​

Properties ​

PropertyTypeDescription
color?stringhow the editor draws it, "rrggbb"; absent = the default
idstring-
inherit?objectabsent = it turns / scales with its parent; false = it keeps its own angle / size whatever the parent does
inherit.rotation?false-
inherit.scale?false-
lengthnumberfrom its origin to its tip along its own x axis (layer units, ≥ 0). Only how it is drawn and where "the tip" is: scaling a bone is scaleX. A keyed length change moves the child bones with the tip.
limit?[number, number]the smallest / largest own rotation it can be posed to, degrees (keys and IK stop there); absent = free
namestringunique in its bone layer (scripts, binds, curve names)
parent?stringthe bone it hangs off (same layer); absent = a root. Parents come BEFORE their children in BoneRig.bones.
restBonePosethe REST pose ("原位"): what the bone is when nothing is keyed — Ctrl + drag with the Bone tool. Keys are offsets from it, and what follows the bone (a layer's parentBone, later a mesh's weights) is measured against it.

HereSplash — 2D animation for the web