Tutorial: from PSD to a first rig
You will turn a layered PSD into a project, rig both eyes to close with the standard parameters
ParamEyeLOpen and ParamEyeROpen, and rig the mouth to open with ParamMouthOpenY, all tagged
so apps blink and lip-sync them on their own. All you need is the editor: the sample character,
Ibuki, is built in. Your own PSD works too if it is split as described below.
Prepare your own PSD
Skip this section if you use Ibuki. Every part that moves on its own needs its own layer: for each eye the sclera (eye white), the complete iris, the pupil, the highlights and the upper and lower lashes. Paint the iris completely, including the part hidden under the eyelids, so it can move without showing a cut edge, and clip the iris, pupil and highlights to the sclera. Give the layers clear names (eye white L, iris L, pupil L, eye highlight L, eyelash L…): the layer names become the object names, and automatic tools such as Auto angle read them. L and R mean the character’s left and right, so the L layers are on the right of the screen.
Start a project from the artwork
On the start page, choose Try the sample character, or Start from a PSD and pick your file. You can also drop a PSD anywhere on the start page. Either way a new project opens, named after the file, in the Prepare stage, and a progress window lists the import’s steps. You can send it to the background with Continue in the background; the PSD Import panel keeps showing the progress.
If you started with Blank project instead, the empty project shows the same Start from a PSD tile in its viewport, and Import › PSD… in the top bar does the same.
The stage bar at the top switches the panel layout to the work at hand: Prepare for the art and meshes, Rig for parameters, keyforms and deformers, Animate and Ship. The shortcuts in these tutorials are the default Ikimotion keys. If you are used to Cubism Editor, choose Cubism-compatible keys in Preferences › Keyboard.
Check what the import made
Every layer is now an art mesh with an automatic mesh, and every group is a part. Look through the Outliner for the tree and the Draw Order panel for the order front to back. Layers that clip to the layer below became clipping masks, and layers hidden in the PSD came in as hidden objects. Problems the importer found, such as a blend mode it cannot reproduce, are listed under Warnings in the PSD Import panel.
Hiding something in the Outliner only affects the editor. The runtime package leaves hidden parts and hidden art meshes out by default (the Hidden parts and Hidden art meshes options in the Export panel), so anything that must appear in apps has to be visible in the Outliner, and anything that should only appear sometimes needs its opacity driven by a parameter. Ibuki has two such cases: the Variations part with the closed eyes, and the mouth tongue out layer, both hidden. Ibuki’s canvas ends at the thighs, so there are no knee, lower-leg or shoe layers.
Give the moving parts enough vertices
A keyform stores the position of every vertex, so a mesh can only bend where it has vertices. The automatic mesh from the import is coarse: an eye white about 60 pixels wide gets a handful of outline vertices and almost none inside, and closing the eye would turn its curved edge into straight lines. Fix the meshes now. Editing a mesh later still works, but the editor then has to remap every keyform onto the new vertices.
- Select eye white L in the Outliner or the viewport.
- Press E for the Edit mesh tool. With an art mesh selected it starts editing that mesh straight away; otherwise select one and press Edit mesh in the tool options. In the Prepare and Rig stages the tool options appear at the top of the Inspector. The mesh is locked for other people while you edit it.
- Under Automesh, set Edge spacing px to about 8 and Interior spacing px to about 12, then press Re-mesh from texture. You can also click inside the mesh to add single vertices.
- Press Apply (or Enter).
Do the same for the lashes, the eyelid fold and the eyeshadow of both eyes, and for the mouth’s mouth skin top and mouth skin bottom, whose inner edges have to move while their outer edges stay put. To re-mesh several meshes at once, select them, choose the Edit mesh tool, set the spacing under Generate mesh automatically and press Mesh n selected art meshes (Ctrl+Shift+A runs the same command). The iris, pupil and highlights do not need more vertices, because they only move or get hidden by the eye white. See Art meshes and mesh editing for the other mesh tools.
Create the eye parameters
Switch to the Rig stage.
- In the Parameters panel, press + Parameter. The New Parameter dialog opens.
- Type the name Eye L Open. The ID follows the name and reads
ParamEyeLOpen. Set Minimum to 0, Default to 1 and Maximum to 1, and press Create. - Create Eye R Open (
ParamEyeROpen) the same way.
The range says what the values mean: 0 is closed, 1 is open, and the default of 1 is the pose the model rests in. The IDs are the ones Cubism uses for eye openness, and apps such as VTube Studio look for them to connect their face tracking.
Add standard parameters… (in the command palette, Ctrl+K, and in the Next steps panel) creates these two together with the rest of the usual face and body parameters, already tagged for blinking. See Adding the standard parameters.
Bind the left eye
Binding an object to a parameter gives it keyforms: stored states at chosen parameter values, with the editor blending between them. The eye needs two, open at 1 and closed at 0.
- Select all the left eye’s meshes with Ctrl+click in the Outliner. On Ibuki these are eye white L, iris L, iris reflection L, pupil L, eye highlight L, eyelid shadow L, eyeshadow bottom L, eyelid fold L, eyelash lower L and eyelash L.
- In the Keyforms panel, choose Eye L Open under Bind parameter and press 2 keys: min/max.
Every selected mesh now has a keyform at 0 and one at 1, both still showing the open eye. Moving the slider changes nothing yet, because the two keyforms are identical.
Close the eye
Edits always go to the keyform at the current parameter values, so set the value first.
-
Set Eye L Open to 0 with its slider. The heading in the Keyforms panel names the keyform you are now editing. If it says the parameters sit between keyforms, drag the slider fully to the left.
-
Choose the Points tool (D). Drag a rectangle around the upper lash’s vertices and drag them down onto the lower lash line. Press O to turn on soft selection so the neighbouring vertices follow with a falloff; [ and ] change its radius. The Deform brush (B) is handy for smoothing the curve afterwards.
-
Collapse the eye white to zero height along the closed lid. A thin sliver is not enough: even half a pixel of white lets a line of the iris through.
- In the Outliner, select only eye white L.
- In the Points tool’s options, press Select all points.
- Under Transform selection, set Scale Y % to 0 and press Apply. The white becomes a flat line through its middle.
- Set Scale Y % back to 100: the fields keep their values for the next Apply.
- Drag the flat line onto the closed lid.
The iris, pupil, highlights and lid shadow clip to the eye white, so they disappear with it and do not need to be moved.
-
Bring the eyelid fold and the eyeshadow down with the lid. On Ibuki, leave the eyelid fold where it is: it covers marks painted into the face layer, which show as soon as it moves.
-
Drag the slider slowly between 0 and 1. Look for the white showing above the lash halfway through, or the lash crossing below the lower lid. Fix such problems on the closed keyform.
While you shape a closed keyform, turn on Show › Flag folded triangles. It fills every triangle that folds over another triangle of its mesh in translucent red. Such a fold, for example an inner vertex of the lash dragged below its outline, cuts the drawn line with a straight edge.
A common mistake is editing the open keyform by accident: if the open eye changes, undo, set the slider back to 0 and edit again. Where edits go: keyforms explains what happens when you edit between keyforms.
Close the right eye the same way with Eye R Open, or let the editor build it from the left eye:
- Select the left eye’s meshes again.
- Run Mirror rig to the other side… from the command palette (Ctrl+K) or the Deformers panel menu. The dialog pairs each mesh with its R counterpart and maps Eye L Open onto Eye R Open. Fit to the other side’s art moves and scales the mirrored keyforms onto the right eye, which is drawn a little lower and wider than the left eye mirrored.
- Press Mirror.
- Check the right eye at Eye R Open 0 and touch up anything that does not meet the lid.
See Mirroring a rig to the other side for the dialog’s options.
Use Ibuki’s painted closed eye instead
Instead of deforming the open eye, you can switch to the closed eye painted in the Variations part. Include eye closed L in the selection when you bind the left eye to Eye L Open, then:
- Show the Variations part in the Outliner. A hidden part is left out of the export, so the closed eye would never appear in apps.
- At Eye L Open 0, set the Opacity in the Inspector to 0 for the eye white, the layers clipped to it and both open lashes (eyelash L and eyelash lower L), and to 1 for eye closed L. With several meshes selected, the Inspector sets them all at once.
- At Eye L Open 1, set eye closed L to 0 and the open eye layers to 1.
If either open lash stays visible at 0, it draws an extra line under the closed eye. Check the eye at 0 and at 1, and check that no bare face skin shows through in between. To do the right eye with Mirror rig to the other side…, include eye closed L in the selection: it pairs with eye closed R, and the opacities are copied with the keyforms.
Rig the mouth
Ibuki’s mouth is painted as a full stack. mouth inside is the whole open cavity, already painted at full size, and the throat, tongue and both rows of teeth clip to it. On top of it, the lips (mouth lip top, mouth lip bottom, mouth lip color) and two skin covers (mouth skin top, mouth skin bottom) hide the cavity in the closed pose. Opening the mouth therefore means moving the lips and the inner edges of the skin covers apart: the interior is revealed, not drawn.
- In the Parameters panel, press + Parameter and create Mouth Open Y with Minimum
0, Default 0 and Maximum 1. The ID follows the name and reads
ParamMouthOpenY. The default is 0 because the model rests with its mouth closed. - Select every visible mesh of the Mouth part with Ctrl+click in the Outliner: the inside, throat, tongue, the four teeth layers, both skin covers, both lips and the lip colour. Leave the hidden mouth tongue out out.
- In the Keyforms panel, choose Mouth Open Y under Bind parameter and press 2 keys: min/max.
- Set Mouth Open Y to 1. With the Points tool (D), move the upper lip up a little and the lower lip down further, since the jaw does most of the opening. Move mouth lip color with them so it stays between the lips.
- Move the inner edge of mouth skin top up with the upper lip and the inner edge of mouth skin bottom down with the lower lip. Keep their outer edges where they are, so the cheeks and chin do not slide. Soft selection (O) with a small radius helps here.
- Optionally move the lower teeth and the tongue down a little with the jaw. They clip to mouth inside, so they never show outside the cavity.
- Drag the slider slowly between 0 and 1. Never open the lips past the edge of mouth inside: wherever the opening goes beyond the painted cavity, the face behind the mouth shows through.
If you move the whole mouth later, for example with a deformer, keep mouth inside and the skin covers in it together with the lips, or the cavity and its clipped layers slide out from under them. mouth tongue out is an extra pose for an expression: show it and drive its opacity with a parameter if you want it.
Tag the parameters for blinking and lip sync
Apps blink a model and move its mouth to sound on their own when the model tells them which parameters to drive.
- In the Parameters panel, press the Edit parameter button (the sliders icon) on the Eye L Open row and tick Eye blink. Do the same for Eye R Open.
- On the Mouth Open Y row, tick Lip sync instead.
- Switch to the Ship stage. The Preview panel builds the runtime package and plays it the way an app does, with the Eye blink effect on. The eyes should blink every few seconds. After later changes to the rig, press Rebuild from project in the Preview to see them. Preview eye blink in the command palette does the same from any stage.
The tags put the parameters into the EyeBlink and LipSync groups of model3.json, which
Cubism SDK apps read. The Export panel lists the tagged parameters under its settings. To test
every parameter at once in the editor, run Play random pose from the command palette;
Stop random pose ends it.
Next
Continue with Rig a head turn. For everything the Keyforms panel can do, see Parameters and keyforms.





