Deformers

Deformers bend everything under them. Meshes and other deformers hang under deformers in a tree (the Deformer palette). Modeling > Deformer makes either kind:

| Kind | Bends things by |
|---|---|
| Warp | a grid of points; drag the grid and the art follows |
| Rotation | turning around a pivot |
Creating one
Select meshes (or deformers), then Modeling > Deformer > Create Warp/Rotation Deformer, or right-click in the Deformer palette. With several meshes selected, right-clicking one of them makes the deformer for the whole selection. Picked items under different deformers go under their shared parent.
Editing a warp
With the Arrow tool and a warp selected:
- the box around it moves, scales (red dots; Shift keeps the aspect, Alt scales from the centre) and rotates (just outside the corners) the whole warp
- click, Shift+click or drag a rectangle to pick grid points; the box then works on those
- Bezier mode shows anchors and handles over the grid. Handles keep the length you give them, also when you move the whole warp, and are saved with the model.
- Edit Level 1, 2, 3 (1 2 3, or Modeling > Edit Level) choose how finely you edit.

Edits land in the keyform the parameters sit on (see parameters).
Editing a rotation deformer
Drag the centre to move the pivot (the art stays put), drag the handle to turn.
The Deformer palette
- Drag a row onto another to re-parent it; the art doesn't move. Dragging one of several selected meshes moves them all; hold a drag near the top or bottom edge to scroll.
- Search filters the tree.
- Right-click: create, rename, delete, select children.
- Deleting a deformer keeps what it held in place. Ctrl+Delete deletes it with everything under it.
- Ctrl+D selects the parent deformer, Ctrl+Alt+D selects a deformer's children.
Deform paths
The Deform Path tool (P) lays a path over a mesh: click adds a control point, drag moves one, Alt+click deletes, Backspace removes the last. Then, with the Arrow tool, dragging a control point bends the mesh along the path. Levels 2 and 3 each keep their own path.
Original shape and Revert to Original
Every deformer remembers an original shape: taken when it is made and again each time a key is added, unless Auto update is unticked in the Inspector. A mesh's original shape is taken when its first key is added, which is the art as imported. The Inspector shows when each was taken.
Modeling > Edit Form > Revert to Original puts the selected meshes and deformers back to that shape in the keyform the parameters sit on, wherever their parents have moved since, as Cubism 5.2 does. Update Original Shape takes it again by hand; Delete Original Shape of All Deformers forgets them, after which an object goes back to its default pose instead.
Sphere warp
An eye, a ball or a chest reads as round when its surface turns with the head instead of sliding sideways: the middle swings toward the turn and the far edge foreshortens. Modeling > Deformer > Sphere Warp… writes that motion into a warp deformer's keyforms for you.
Select the warp deformer that holds the round thing (the grid's edge is the sphere's rim, so size it to the ball, not the whole face), then open the dialog:
| Field | What it does |
|---|---|
| Parameter X, Parameter Y | the parameters that turn the sphere left/right and down/up. Angle X and Angle Y are picked when the model has them. |
| Keys | the keys written on each parameter, as text ("-30, 0, 30"). The parameter's minimum, default and maximum are filled in; the default is always written, since that key is the front. |
| Depth | how far the grid is lifted toward you: 1 is a full hemisphere, 0 stays flat and only foreshortens. |
| Max angle | the turn, in degrees, at the end of each parameter's range farther from its default; the nearer end turns proportionally less. 30 suits a head that turns about as far as Angle X says. Past about 45 degrees with full depth the leaving edge passes behind the centre, so keep it modest or lower the depth. |
Apply adds the keys to the warp, writes every keyform on those two parameters and selects the warp, as one undo step. If the warp already has keys on either parameter, the dialog says so: their keyforms are overwritten, the keys themselves stay. Keyforms on other parameters are left alone.
The result is plain warp keyforms, nothing the runtime has to know about, so it exports to every moc3 version and every key can be edited afterwards, by hand or with four corner forms.
Changing a warp's divisions
Right-click a warp and choose Conversion Divisions…, or type new columns and rows in Tool Details and press Apply. Every keyform's grid is sampled again at the new size, so what the warp holds keeps its shape: exactly when the grid gets finer, at the points that remain when it gets coarser. Its children need no change, and its blend shapes follow.
Updated