Bones
Esta página aún no está disponible en tu idioma.
type: "bones" · Deformer: moves the points of the drawing. · Editor menu: Deform.
A chain of 2 to 6 bones from Start to End, each with its own length (relative to the others). Each bone turns on its joint (relative to the previous one) and drags what is around it; at each joint the drawing bends round an arc, keeping its thickness, and Smooth sets how long that arc is. With a Target, the angles are solved (IK) so the tip reaches it.
Parameters
Section titled “Parameters”| Param | Type | Default | Range | Notes |
|---|---|---|---|---|
segments |
number | 3 |
min 2, max 6, step 1 | |
angle1 |
angle | 12 |
degrees | only when ik is false; label: Bone 1 |
angle2 |
angle | 12 |
degrees | only when ik is false; label: Bone 2 |
angle3 |
angle | 12 |
degrees | only when ik is false and segments is 3 or 4 or 5 or 6; label: Bone 3 |
angle4 |
angle | 12 |
degrees | only when ik is false and segments is 4 or 5 or 6; label: Bone 4 |
angle5 |
angle | 12 |
degrees | only when ik is false and segments is 5 or 6; label: Bone 5 |
angle6 |
angle | 12 |
degrees | only when ik is false and segments is 6; label: Bone 6 |
smooth |
number | 0.5 |
min 0, max 1, step 0.01 | shown as a percentage in the editor (0.5 is 50 %) |
ik |
boolean | false |
not animatable | |
target |
point | [0.8,0.1] |
[x, y], fractions of the box (0–1), shown as percentages in the editor | only when ik is true |
start |
point | [0,0.5] |
[x, y], fractions of the box (0–1), shown as percentages in the editor | group: Chain |
end |
point | [1,0.5] |
[x, y], fractions of the box (0–1), shown as percentages in the editor | group: Chain |
length1 |
number | 1 |
min 0.1, max 10, step 0.05 | group: Chain; label: Length 1 |
length2 |
number | 1 |
min 0.1, max 10, step 0.05 | group: Chain; label: Length 2 |
length3 |
number | 1 |
min 0.1, max 10, step 0.05 | only when segments is 3 or 4 or 5 or 6; group: Chain; label: Length 3 |
length4 |
number | 1 |
min 0.1, max 10, step 0.05 | only when segments is 4 or 5 or 6; group: Chain; label: Length 4 |
length5 |
number | 1 |
min 0.1, max 10, step 0.05 | only when segments is 5 or 6; group: Chain; label: Length 5 |
length6 |
number | 1 |
min 0.1, max 10, step 0.05 | only when segments is 6; group: Chain; label: Length 6 |
Missing parameters take their default. Numbers and angles (and points and colours) can be animated with a track { on: "modifier", modifier: "<id>", param: "<name>" } unless noted.
In a scene
Section titled “In a scene”Inside a node’s stack (effects run top to bottom):
{ "id": "bones-1", "type": "bones", "params": { "segments": 3, "angle1": 12, "angle2": 12, "angle3": 12, "angle4": 12, "angle5": 12, "angle6": 12, "smooth": 0.5, "ik": false, "target": [ 0.8, 0.1 ], "start": [ 0, 0.5 ], "end": [ 1, 0.5 ], "length1": 1, "length2": 1, "length3": 1, "length4": 1, "length5": 1, "length6": 1 }}Generated from the schema of @svertik/engine. See the index.