Constraints
Transform constraints
A transform constraint makes one or more bones copy the movement of another bone. Where IK solves a chain so that its tip reaches a target, a transform constraint is simpler and more flexible: it reads the rotation, position, scale and shear of a source bone and writes them to the constrained bones, each channel with its own strength. That is how a shield inherits only the rotation of an arm, how a lamp swings with a body at half strength, or how a whole accessory is driven from one controller bone. This article shows how to create a transform constraint, what the sections of its Properties do, how the six mixes, the offsets and the Local and Relative options combine, how Match keeps the current pose, how the Mapping section turns one property of the source into another, and how to animate the mixes.

How a transform constraint works#
A transform constraint has a source, which Ligamen calls the Target, one or more constrained bones and six mixes. The Target is any bone that is not one of the constrained bones. The constrained bones are the ones that change. After the bones have their own pose, the constraint reads the Target, adds the offsets and blends the result into each constrained bone: rotation, X and Y translation, X and Y scale and Y shear, one mix per channel.
A mix of 1 means that the constrained bone takes the value from the Target completely, a mix of 0 means that the channel is left alone, and values in between blend the two. This is the main difference from IK: you decide channel by channel what is copied. A bone can copy only the rotation of its Target and keep its own position, or copy the position and keep its own rotation. Like every constraint, a transform constraint is solved in the shared order of the Constraints panel, so it sees the pose that the constraints above it have produced (see IK constraints).
Creating a constraint#
Select the bone that should follow, right-click it in the Tree, choose New and Transform Constraint. Ligamen now waits for the source. Click a bone in the Tree or in the viewport, and the constraint is created with the selected bone as the constrained one and the clicked bone as the Target. Press Esc to cancel. If you right-click a group of selected bones instead, a list of the remaining bones opens, and the one you choose becomes the Target of one constraint for the whole group. The creation is one undo step.
The New button in the Constraints panel opens the New constraint dialog, where you choose the TF type. With two or more bones selected, the last one is the Target and the first of the others is constrained. With one bone selected, it is constrained and the Target is the first other bone of the skeleton. Add more constrained bones afterwards in the Properties. A new constraint is named Transform constraint, Transform constraint 2 and so on, and it is added at the end of the order. At least two bones must exist in the skeleton.
A new constraint copies every channel completely, because the mixes that are not written count as 1. If the constrained bone jumps to the position of the Target, that is expected: the next sections show how to tame it with mixes and offsets.
The Properties of a constraint#
Select the constraint in the Constraints panel or in the Tree, where it sits in the Constraints section and is marked Transform. The header of Properties shows its name and Transform Constraint · 1 bone. The first section, Constraint, holds the Name, the Order in the shared evaluation order and the Skin only switch, which is explained at the end of the article.
The Target section shows the source bone in the Target field. Open it to choose another bone. Under it is the list of constrained bones, each marked constrained, and the Add bone button, which adds one more bone to the constraint. Below the sections you find a short summary, Bones: and Target:, that repeats the same information. The Constraints panel also lists the constraint, with its mix, in its row, and its eye sets the mix to 0 and back, as described in IK constraints.
Mixes#
The Mix section has six sliders: Rotate, Translate X, Translate Y, Scale X, Scale Y and Shear Y. Each goes from 0 to 1 in steps of 0.05, and you can type a value as well. In a classic constraint every mix that is not set counts as 1, except Translate Y, which follows Translate X, and Scale Y, which follows Scale X, until you set them. To copy only the rotation, set the other five to 0. To copy only the position, set Translate X and Translate Y to 1 and the rest to 0. A value of 0.5 gives half of the way between the own pose of the bone and the pose it would get from the Target.
The Link switch, Link sliders, makes every slider move all six values at once. It is off by default, and Ligamen remembers its state between sessions. Use it when you only want to fade the whole constraint in and out. In Setup, moving a linked slider sets all six mixes in one undo step.
The Key mix row has a key button that writes all six mixes at the playhead, which is described in the section on animation.
Offsets#
The Offset section holds the numbers that are added to what the Target provides: Rotate in degrees, Translate in pixels as X and Y, Scale as X and Y, and Shear as Y. There is no shear on X. An offset lets the constrained bone keep a distance or an angle from the Target. If a hand copies the rotation of a controller but should always sit 20 degrees further, put 20 into Rotate. The offsets are setup values and are edited in Setup. In Animate they are not keyed.
Match is the quick way to fill the offsets in. It calculates them so that the constrained bone stays exactly where it is now, with the current mixes and options, and the constraint carries it from this pose onward. Use it right after you create the constraint, or when you move the Target and want the bone to stay put. Match works in Setup only, and in Animate it reports that it edits the setup offsets. It is one undo step. A constraint whose Target or bones cannot be matched, for example when the Target has a degenerate scale, tells you the reason in the status line instead of changing anything.
Local and Relative#
The Options section has two switches. By default a transform constraint reads the world transform of the Target and writes the world transform of the constrained bone, which means the copy is measured in the same space for both, whatever their parents do. Local reads the local values of the Target instead, the ones you see in its own Properties relative to its parent, and writes local values to the constrained bone. Use Local when both bones should behave like siblings in their own coordinate systems, for example two bones with different parents that should share the same bend angle.
Relative changes what the constraint adds. Normally the constrained bone is set to the value of the Target plus the offset. With Relative the value of the Target is added to the value that the bone already has, so the bone keeps its own animation and the Target only moves it on top. This is the choice for secondary motion: a tail that keeps its own idle and additionally follows a controller. After you change Local or Relative, use Match again if you want the pose to stay the same.
The Mapping section#
A classic constraint copies a property to the same property: rotation to rotation, X to X. The Mapping section turns it into a free map from the properties of the Target to the properties of the constrained bones, as in Spine 4.3. The properties are rotate, x, y, scaleX, scaleY and shearY. A pair rotate → x moves the bone sideways when the Target rotates, which is a simple way to build a piston, a slider or a gauge.
The three switches at the top set the rules of the whole mapping. Clamp keeps each result between its Offset and its Max. Local source reads the local values of the Target, and Local target writes local values to the constrained bones, the same idea as Local above but for each side separately. Under them each source property has a row <property> offset, the value subtracted from the source before it is mapped. Each pair is a row → <property> with three fields: Offset, the value the property gets when the source is at its offset; Scale, how much the property changes per unit of the source; and Max, the limit for Clamp. The × at the end of the row removes the pair. The result of a pair is its offset plus the source value times its scale, up to the Max with Clamp.
To add a pair, choose the source and the target property in the two lists in the last row, and click Add. Adding the first pair to a classic constraint converts it into the equivalent Spine 4.3 mapping with the same pose, in one undo step, and the constraint is then edited through the mapping. The mixes keep working per target property: a property that appears in the mapping is mixed with the slider of the same name, and a property that does not appear has no effect. Exports below Spine 4.3 bake the mapping into plain values, so check the result in the target runtime if you need an older format. Every change in the mapping is one undo step, and it is edited in Setup only.
Animating the mixes#
In Animate, with Auto Key on, dragging a mix slider records a key at the playhead (see Keys). A transform constraint keeps all six mixes in one key, so Ligamen writes the other five from the pose at the playhead and the key never resets them. The key button in the Key mix row writes all six mixes at the playhead, changed or not, and the status line reports Keyed <name>.mix at frame <n>. With Link on, a single drag writes one key with all six mixes at the new value. With Auto Key off, a drag does nothing and the status line says to press K to insert a key.
Because a mix of 0 switches a channel off, keys on the mixes are the way to turn a constraint on only for a part of an animation: a weapon that follows the hand while it is drawn and stays on the back the rest of the time. The offsets, Local, Relative and the mapping stay as they were set in Setup, so decide them before you key.
Transform constraints and skins#
A transform constraint can belong to a skin. Turn on Skin only in the Constraint section and the constraint runs only while a skin that lists it, or default, is on. A character that wears a cloak can bring a constraint for the cloak with it, and a character without a cloak carries nothing extra. Add a constraint to a skin with Skin Membership in the Tree, as described in Skins.