Constraints and springs
Some bones are better moved by a rule than by hand: an arm that reaches for what it holds, a tail that swings, a rope along a curve. Each rule is set once on the skeleton, and works in every animation.
Reach for a target
Select the last bone of a chain, a hand or a foot, and look under Constraints in its panel:
- Reach for a target adds a target at the tip of the bone and turns the bone towards it;
- Reach with its parent too bends the bone and its parent, as an arm or a leg.
Move the target, or key it, and the chain follows. The constraint has a Mix from 0 to 1 and a
Bend direction, so that a knee bends the right way. In walker no leg bone has a
key: only the shoes and the hips are animated.
Stretch, compress and soften
A chain reaches no further than its bones are long. Under the constraint, Stretches to reach lengthens them when the target is too far, and Compresses to reach shortens them when it is too near. Width says what the width of the bones does then: Kept, As the length, or Its area kept, thinner as they lengthen, as rubber. A chain of two bones has a Softness: over that distance before the chain is straight its reach slows down, so that the elbow does not snap straight as the target goes away.
In Animate mode, what the panel changes of a constraint is a key at the clock: its Mix and
its Softness go from key to key along their curves, and which way it bends and whether it stretches
or compresses hold until the next key. The keys are a row of the timeline under the last bone of the chain,
named after the constraint. In grabber the arm stretches for a balloon, and its mix, keyed,
lets go a moment.
Follow another bone
Follow another bone makes the selected bone take the rotation, the position, the scale and the shear of another, each by a share from 0 to 1, from where it is: nothing moves when it is made. The shares are keyed in Animate mode, and an Offset tunes it.
Local, added, driven
Under the constraint, Space says where the numbers are taken: World, where the target is on the screen, or Local, the numbers of the target as its panel types them, whatever their parents. Added to the bone adds the target to the bone, its share of it, instead of bringing the bone to it.
Driven turns one number of the target into another of the bone: + Drive, then which
number gives (the rotation, x, y, a scale, the shear) and which receives, times a Factor, plus an
Offset, and kept, when you tick them, No less than and No more than a value. A
wheel turns as its cart rolls; an eye moves as the head turns; a needle stops at the end of its dial. In
cart only the cart is keyed.
Paths
The Path tool (P) draws a curve on the selected bone: New path under the bar, then a click for each point and a drag to shape it. Lay along makes a chain of bones follow it, each after the one before: a tail, a rope, a snake. In the example snake, a key of its position from 0 to 1 takes the chain once round a closed path.
Placed, spaced and turned
Under the chain, in the panel of the bone of its path: Position as a Share of the path or a
Length along it; Spacing as Length (each bone its own length plus the spacing),
Fixed (from origin to origin), Share (a share of the path) or Proportional (the chain
spans that share of the path, each bone by its length); Turned by Chain (each bone at where
its tip falls on the path), Tangent (along the path where it starts) or Chain and scale (each
bone lengthened to the next). In worm a proportional spacing keyed from 0.3 to 0.55 stretches
an inchworm out along a twig, its segments growing.
A path imported from another tool may be carried by several bones, each of its points following them. The Path tool does not move such a path; Carried by its bone only, in its panel, gives it back to the bone of its slot where it is.
Constraints as a whole
Each constraint moves its bones from where the constraints solved before it left them, so their order matters. By default the reaches are solved first, then the paths, then the bones that follow another. With nothing selected, Order of solving in the panel of the project lists them all: Earlier and Later move one in the order, and its box switches it off. A constraint switched off keeps its settings and its keys and is not solved, in the editor as in a game, until it is switched on again.
Under each constraint, in the panel of its bone (or of its path):
- Duplicate makes a copy, with its keys, solved right after it;
- Copy settings to gives its mixes, and its bend, offset, position or spacing, to another constraint of its kind, which keeps its own bones and target;
- Take this bone out takes the selected bone out of it, when it holds others.
Add this bone to a constraint, under Constraints, puts the selected bone in one: a constraint that follows another bone takes any bone but its target and what carries it; a chain (a reach, a path) takes the bone at one of its ends, the parent of its first bone or a child of its last. Each change is one undo. New folder, under the list, groups constraints under a name; the … of a constraint chooses its folder, and the order of solving stays what it is.
Sliders
A slider holds an animation at a time: the character takes the pose that animation has then, by a Mix. A face that smiles as a value grows, a hand that closes, a face that turns as the eyes move: the poses are made once, as an animation, and a single number plays them.
With nothing selected, the panel of the project has Sliders: + Slider makes one, on an
animation that is not the one shown. Choose what it Plays, its Time and its Mix;
in Animate mode those are keys at the clock, in the animation shown, and a row of the timeline holds them.
Given by a bone takes the time from a number of a bone (its rotation, its x, its y…), times a
Factor, plus an Offset: the slider follows the bone. A game sets a slider by its name.
In face only the eyes are keyed.
Springs
Make it springy makes the selected bone follow what carries it with a delay, and swing before it settles, with no key: a tail, an antenna, the end of a flag. Stiffness and Damping tune it, and it can feel weight and keep its momentum:
- Gravity pulls down every spring of the character; Weight says how much of it this bone feels, so a tail hangs and an antenna stands.
- Inertia says how much the tip stays behind when what carries the bone moves; In the game, when the game moves the whole character.
- Mass says how heavy the tip is: a heavy one is slow to follow and slow to stop.
- Mix says how much of its swing the bone takes: 0 leaves it as posed.
In Animate mode, Alt and a drag on the canvas carry the whole character as a game would: let go, and it comes back. The same numbers give the same swing in every runtime: how a spring is worked out is written in the project format.
Springs in time
In Animate mode, a number of a spring changed in the panel of its bone is a key at the clock, as a
bone's pose is: a tail that stiffens when the character lands, hair that goes still under water, a
swing that the Mix fades in. The keys are a row of the timeline under the bone, named after the
spring; between two keys a number follows the curve. In jelly the tentacles are keyed four
times as heavy for the second pulse of the bell.
Points
+ Point, in the panel of a bone, puts a place and a direction on it that a game reads: where a hand holds a tool, where a shot leaves, where dust rises from a foot. It draws nothing, and follows its bone.