← All work

Python · ComfyUI · SAM 2 · image models · Live2D Cubism · Vite

LayerLoom

One character illustration in, a layered PSD ready for Live2D rigging out. LayerLoom splits a character into the dozens of separate pieces a rig needs, repaints what each piece was hiding, cuts the hair into locks for physics, and generates a blink and an open mouth.

The pipeline for Quill: the source illustration, a head crop, the decomposed layers, generated expressions, recipe splits, and the finished PSD
Quill, from one image to a rig-ready PSD. Every step's result is kept, so a rerun only does what changed.
36 / 34layers for Quill / Boo, named for Cubism
~30 minof local model time per character
~$0.06per paid image edit, a handful per character, all logged
Cubism 5.3imports the PSD with the layers and draw order intact

Why

Rigging starts with hours of cutting things apart

A Live2D model moves pieces of a flat illustration: each lock of hair, each eyelid, the mouth, the arms. Before rigging can start, the artwork has to be split into those pieces, and everything one piece covers has to be painted in, or a hole opens the moment something moves. That's usually hours to days of an artist's time per character. I needed it for Quill and Boo, the AI characters in Goose World, so I built a pipeline that does the cutting and an editor for the hand repair after it.

The pipeline

From one image to a layered PSD

Quill's source illustration beside her 36 separated layers
Quill: one illustration, 36 layers. Every part is separate, and the hidden areas are repainted.
Quill's layers spread apart in depth, back hair to headwear
Quill, exploded back to front.
Boo's layers spread apart in depth
Boo, exploded back to front.

What I learned

Details that decided whether it worked

1

Ask the model to take the thing off

The first fills showed the image model a layer full of thing-shaped holes and asked it to fill them; it drew pieces of the thing back in. Shown the layer with the thing still on and asked to remove it, it rebuilds what was underneath cleanly.

2

Some parts need colour, not shape

Quill's gold crown is woven through her purple hat, and SAM's shape-based selection takes both. For woven parts, a recipe can select by colour instead: click each distinct colour on the crown and on everything around it, and each pixel goes with the closest click. Split off the thing in front (the crown), and the fill rebuilds the whole hat underneath.

3

Never pay twice

Every step keeps its result, so a rerun only does what's missing, and changing a recipe reruns only the recipe step and what follows it. Paid edits are never re-sent unless their step is redone, and each one's usage is logged.

4

Check the PSD where it will be used

A real closed-eye reference revealed that the PSD writer stored layer records in reverse order, even though its own preview looked right. The fix was confirmed both by recomposing the layers independently and by importing the file into Cubism 5.3.

Recipe splits: Boo's hat split off his hood, and Quill's crown split off her hat by colour, with what was underneath redrawn
Recipe splits: one click, a new layer, and what was under it redrawn.
Boo and Quill neutral, blinking and talking
The missing pieces, generated: a blink and an open mouth for each.
Front and back hair split into coloured locks
Hair split into locks for physics, each lock coloured.
Arms split at the elbow, upper and lower halves overlapping at the joint
Arms split at the elbow, both halves sharing the joint so a bend opens no gap.

The studio

An editor for the hand repair

The pipeline's output opens as a LayerLoom project in a browser studio built for the cleanup a rig needs:

Selecting and checking never spend credits; generation is always a separate, reviewed step.

The LayerLoom studio with Quill loaded, her crown layer selected
The studio with Quill's crown layer selected: parts on the left, the canvas, and placement and cleanup tools on the right.

Next

What's left

LayerLoom produces the layers, not the rig: meshes and keyforms are still authored in Cubism by hand. Next on the pipeline are more mouth shapes (a smile and the vowels), hands split at the wrist, and the sheer skirt over Quill's legs.