How to make modular characters in Blender and Godot
Make modular characters from rigged models: split body parts in Blender with a free script, then build a character creator in Godot 4.
A modular character is one character built from swappable parts: a head, a torso, hands, legs and feet that you mix and match in a character creator. Modular character packs come cut that way. But you may already have a pile of finished characters in one style, all rigged to the same skeleton, and want to turn them into modular parts. Separating the body parts in Blender by hand doesn't get you there: the seams don't meet, and every head sits at a different height.
This guide shows how to make modular characters in Blender from rigged models you already have, and how to build a character creator in Godot 4 with them. We wrote a Blender script that does the whole modular character workflow in one run, and it's free to download below. We tested it on 16 of our own characters and on 3 characters with Mixamo bone names, measured every seam in the rest pose and in 13 frames of the clips, and put the parts together in Godot 4.7.2. Each step comes with the reason it's there, so you can adapt the script to your rig.

Four characters in Godot 4.7.2, each made of parts from four or five other
characters, all playing walk on one skeleton.
On this page:
- What a modular character is and what it needs
- Separate body parts in Blender, and why a plain cut fails
- Make modular characters in Blender, in five steps
- Run the modular character script
- Make a character creator in Godot 4
- How well the seams close
- Mixamo rigs, Unity and Unreal
- Limits
What is a modular character?
A modular character system splits every character into the same slots, and lets the player or your code fill each slot from a different character. Five slots cover most character customization: head, torso, hands, legs and feet. All parts share one skeleton and one set of animations, so a new mix needs no new rig and no new clips.
That's how a character creator gives a player thousands of looks from a few dozen characters. It's also how you make a crowd of enemies that don't all look the same.
What does a modular character need?
A head from character A on the body of character B has to pass three tests:
- It moves with the body. Every part needs the same skeleton, at the same rest pose, with the same bind matrices. Then one animation player drives all five parts, and you keep one set of clips instead of one per character.
- It sits in the same place. A tall character's head floats above a short character's neck. Every part has to be built for the same body proportions.
- The seam is closed. The bottom edge of the head and the top edge of the torso must be the same ring of vertices, at the same positions. If one ring is wider, you look through a gap into the inside of the model. If the weights at the ring differ, the gap opens as soon as the neck bends. If the normals differ, you see a line in the lighting even when the gap is closed.
The first two tests are about the skeleton. The third is about the mesh at five places: the neck, the waist, two wrists and two ankles.
How do I separate body parts in Blender?
To separate the head from the body of one rigged character, open it in Edit Mode, select the vertex groups of the head bones (Select under Vertex Groups in the Object Data properties), and press P, then Selection. The new object keeps the Armature modifier, its parent and all vertex groups, so it still moves with the rig. We checked this in Blender 5.2.2. Separate → By Loose Parts doesn't help on a .glb, for the reason in the third point below.
That gives you a head, but not a modular part that fits other characters:
- The cut follows the triangles, so the edge is jagged, and every character's edge is jagged in a different way.
- Each file keeps its own skeleton. The head bones of our characters sit between 1.58 m and 1.67 m above the floor, so a swapped head floats or sinks by up to 8 cm.
- A glTF file splits each vertex at every UV seam. One of our characters arrives as 2,348 separate islands, so "select linked" picks single triangles.
We tried the cut alone first, with every character already moved onto one skeleton (step 1 below). Across 40 random pairs of characters for each seam, the widest gap along a seam had a median of 22 mm at the wrists and 117 mm at the neck. The rings don't just differ in size, they differ in shape: a fur collar, a breastplate and a bare neck are three different outlines.

The open edges of two parts at the waist and the neck, seen along the spine. Before: two outlines that don't meet. After: one shared ring.
How do I make modular characters in Blender?
Our script does five things to every character, and you can do the same with your own tools. Each step fixes a fault that we hit when we left it out.
1. Move every character onto one skeleton
One character is the reference: its skeleton and its clips are the ones that ship. Every other character moves onto that skeleton, bone by bone. For each bone, the script turns the character's bone onto the reference bone's direction, and stretches it along its length to the reference length. The thickness stays the same.
So a broad orc keeps its broad chest, but gets the reference's height, arm length and leg length. This is how the script resizes every character to one body. The vertices follow their own skin weights, so a vertex between two bones gets a mix of the two moves, and the elbows bend smoothly. The normals turn with the same mix, so the shading stays right. Last, the feet stretch below the ankle until every sole stands at the floor.
# conform_maps(): one map for each bone of the reference
ds = src_heads[child.name] - src_heads[name] # this character's bone
dr = ref_heads[child.name] - ref_heads[name] # the reference bone
k = np.clip(np.linalg.norm(dr) / max(np.linalg.norm(ds), 1e-6), 0.5, 2.0)
axis = dr / np.linalg.norm(dr)
stretch = np.eye(3) + (k - 1.0) * np.outer(axis, axis) # longer, not thicker
lin = stretch @ rotation_between(ds, dr)
2. Weld the split vertices
The script merges the vertices that sit at the same position (closer than 0.01 mm). One of our characters went from 12,062 vertices to 3,898, and from 2,348 islands to one surface. Before the merge, it copies each corner's normal into an attribute, and puts it back at the end. So the hard edges and the UV seams look exactly as before.
Without this step, every cut leaves hundreds of tiny loose pieces, and the seam has holes at every UV seam.
3. Cut on planes across the bones
Each seam is a plane square to a bone, at a fixed place along it:
| Seam | Plane | Below → above |
|---|---|---|
| Neck | Halfway between the two neck bones | torso → head |
| Waist | At the base of the spine, over the hips | legs → torso |
| Wrists | 85% of the way from the elbow to the hand | torso → hands |
| Ankles | 75% of the way from the knee to the ankle | legs → feet |
The script cuts each face that crosses a plane into two (Blender's bisect), so the new edge lies exactly on the plane. It cuts only the faces near that bone: a sleeve at wrist height doesn't get cut by the waist plane. Each face then goes to a part by the bone that moves it most, and by its side of the plane.

All 16 test characters on the reference skeleton, cut into head, torso, hands, legs and feet.
One surprise: on several characters, the faces around the neck are skinned to the shoulder bones, not the neck bones. With the shoulders left out of the neck cut, those faces stayed whole, and the neck ring had an opening up to 100° wide. With the shoulders in, 15 of 16 neck rings close.
4. Make every seam the same
This is the step that closes the gaps. For each seam, the script:
- Measures the outline of each character's ring: its distance from the centre at every 5° around it.
- Takes the median outline of all the characters that fit (step 5) as the shared ring.
- Moves every vertex within 3 to 6 cm of the plane toward the shared ring. On the plane, a vertex lands on the ring. The move fades out smoothly with distance, so the part keeps its own look away from the seam. Inner layers of cloth land on the ring too, so no layer leaves a hole.
- Splits long edges on the ring, so that every ring has a vertex at least every 5°. A long straight edge cuts inside a round ring and leaves a sliver against a ring with more vertices. This step alone took the waist gaps from 6 mm to 1 mm.
- Gives the ring the same skin weights on every part: the mean of all the rings, at most four bones. Then the seam bends the same way on both sides, in every clip.
- Gives the ring the same normals on every part: the mean normal at each angle. Then the lighting has no line at the seam.
# standardise_seams(): each vertex near the seam moves toward the shared ring
k = blend_factor(d[sel], s["blend"]) # 1 on the plane, 0 at the blend distance
r = np.maximum(np.hypot(x[sel], y[sel]), 1e-4)
grow = (ring_radius(target, x[sel], y[sel]) / r - 1) * k
co[sel] += (x[sel] * grow)[:, None] * f["u"] + (y[sel] * grow)[:, None] * f["v"]

Mixed parts mid-walk, cut only (left) and with matched seams (right). Top: the legs of one character under the torso of another. Bottom: a head on another character's torso.
5. Leave out what doesn't fit
The shared ring is a compromise, and some characters are too far from it. A ring that would have to grow or shrink by more than 1.5 times keeps its own shape. So does a ring with an opening wider than 10°, for example a cut through a cape that has nothing beneath it. Its part still works on its own character, but it won't fit the others at that seam.
The script writes these decisions to report.json. In our set of 16:
| Seam | Fit | Left out, and why |
|---|---|---|
| Neck | 13 | a skeleton and a hunter (necks too thin), a large character with an open collar |
| Waist | 11 | three large characters (1.6 to 2.4 times too wide), the skeleton, an open ring |
| Left wrist | 13 | two large characters, a seer with thin wrists |
| Right wrist | 11 | four large characters, the seer |
| Left ankle | 12 | two large characters, the seer, the hunter |
| Right ankle | 12 | three large characters, the seer |
Use the report in your character creator: offer a part for a slot only if its character fits the seams of that slot. A head needs the neck. Hands need both wrists. Feet need both ankles. A torso needs the neck, the waist and both wrists, and legs need the waist and both ankles.
Run the modular character script
Download modular_split.py. It needs only Blender 5.2, which ships with NumPy. Put your characters in one folder, pick one as the reference, and run Blender in the background:
blender -b --python modular_split.py -- --ref characters/hero.glb --out parts characters/*.glb
Pick a reference with average proportions: every other character takes its height and limb lengths. The folder parts then has:
<name>.glbfor each character: five skinned meshes calledhead,torso,hands,legsandfeet, on the reference skeleton, with no clips.base.glb: the reference character's parts with its skeleton and all its clips.report.json: for each seam, the characters that fit it.modular.blend: every part in one Blender file, so you can look at them all.
16 characters of about 8,000 triangles each took 30 seconds and 0.6 GB of memory. Add --no-seam-fix to cut without matching the seams, to see the difference for yourself.
The settings are at the top of the script:
RIGS: the bone names that the seams use. Hatchery3D and Mixamo are in it. For another rig, copy one entry and change the names.use_rig(): the place of each seam along its bone (t), how far the cut reaches from the bone (radius) and how far the seam's shape blends in (blend).FIT: how much a ring may grow or shrink, 0.67 to 1.5 times. A wider range lets more characters in, with more visible stretching near the seams.
How do I make a character creator in Godot 4?
A character creator in Godot needs two things: a base character that owns the skeleton and the animations, and a way to swap meshes on that skeleton in code. The rest is your UI: one list for each slot, filled from report.json with the parts that fit (step 5 above), and a call to set_part() when the player picks one.
Swap a mesh on a Skeleton3D in code
Import the files as they are. Then build each character from base.glb, and move meshes from the other files onto its skeleton. This works because every file has the same skin: the same 77 joints in the same order, with the same inverse bind matrices. We compared them in the files: they match exactly. So a mesh from one file can take another file's skeleton without any changes.
Download modular_character.gd, or copy it:
class_name ModularCharacter
extends Node3D
const SLOTS := ["head", "torso", "hands", "legs", "feet"]
var body: Node3D
var skeleton: Skeleton3D
var animation_player: AnimationPlayer
func _init(base_scene: PackedScene) -> void:
body = base_scene.instantiate()
add_child(body)
skeleton = body.find_children("*", "Skeleton3D")[0]
animation_player = body.find_children("*", "AnimationPlayer")[0]
## Puts the slot's mesh from another character's file on this skeleton.
func set_part(slot: String, part_scene: PackedScene) -> void:
var source := part_scene.instantiate()
var mesh := source.find_child(slot) as MeshInstance3D
var old := skeleton.get_node_or_null(NodePath(slot))
if old:
skeleton.remove_child(old)
old.queue_free()
mesh.get_parent().remove_child(mesh)
mesh.owner = null
skeleton.add_child(mesh)
mesh.skeleton = NodePath("..")
source.free()
Use it like this:
var hero := ModularCharacter.new(load("res://parts/base.glb"))
add_child(hero)
hero.set_part("head", load("res://parts/goblin-raider.glb"))
hero.set_part("legs", load("res://parts/village-elder.glb"))
hero.animation_player.play("walk")
The picture at the top comes from this script in Godot 4.7.2. Each character has five meshes on one skeleton and plays all nine clips of base.glb. If you already use an AnimationTree, point it at the base's AnimationPlayer as usual. Our Godot import guide covers loops, colliders and hand sockets, and the third-person controller builds the AnimationTree.
How well do the seams close?
We measured the widest gap along each seam: the largest distance from any vertex on one part's ring to the ring of the other part. For each seam, we took 40 random pairs of characters that fit, and measured them in the rest pose and in 13 frames of walk, run, slash, punch, death, jump and wave.
| Seam | Cut only, median | Cut only, worst | Matched, median | Matched, worst |
|---|---|---|---|---|
| Neck | 117 mm | 156 mm | 3.4 mm | 5.3 mm |
| Waist | 81 mm | 160 mm | 1.0 mm | 1.6 mm |
| Left wrist | 26 mm | 88 mm | 0.6 mm | 1.6 mm |
| Right wrist | 22 mm | 82 mm | 0.3 mm | 0.5 mm |
| Left ankle | 38 mm | 144 mm | 0.3 mm | 0.5 mm |
| Right ankle | 32 mm | 90 mm | 0.7 mm | 1.1 mm |
The gaps in the clips are the same as in the rest pose, to a tenth of a millimetre: the shared weights make both sides of a seam move together. What remains comes from the two rings having different vertices on the same curve. The straight edges between them cut the corners a little differently. The neck has the most because its shared ring has the most bumps. We couldn't see any of them in close-up renders.
Does it work with Mixamo rigs?
Yes, with the names in RIGS. Mixamo rigs name their bones mixamorig:Hips, mixamorig:Spine and so on. Our Mixamo files have one neck bone and no toe-end bones. The script picks the rig from the reference's hips bone. We ran it on three characters with a 52-bone Mixamo skeleton: a knight, a goblin and a wizard.

Two mixes from three Mixamo-rigged characters, mid-walk in Blender.
Every seam that fit closed to under 2 mm. The goblin's neck ring was open and kept its own seam, so its head fits only its own torso, and the wizard's right ankle was 1.7 times too wide. With only three characters, one odd ring moves the shared shape a lot. A larger set gives a steadier median.
Does it work in Unity or Unreal?
We haven't tested the files there, so we can't give you numbers. The files are standard glTF skinned meshes, and the idea is the same in every engine: one skeleton and one animator drive every part. In Unity, each part's SkinnedMeshRenderer uses the bones of the base skeleton. In Unreal, the parts follow the base mesh with a Leader Pose Component. Check the seams in your engine before you build a modular character system on it.
What it can't do
- Only one rig at a time. All characters need the same bone names as the reference. Different proportions are fine. A different skeleton, for example a quadruped or a rig with other bones, needs its own entry in
RIGS, and the seams must make sense on it. - Very different bodies don't fit. Large characters, a skeleton and a seer with thin wrists all kept their own seams at some places (see the table above). That's the right result: stretching a skeleton's waist to the waist of a heavy warrior would ruin both. Make a second base for big characters if you need them.
- Long clothes go with the part that holds them. A robe that starts at the waist belongs to the legs, so a robed character's legs look like a robe on anyone. A long coat is cut at the waist: its top half goes with the torso, its bottom half with the legs. Pick seam places that suit your clothes. The waist
tandradiusare the first settings to try. - Five parts, five materials. Each part keeps its own character's texture, so a mixed character has five draw calls instead of one. For a crowd, bake the parts of each character into one atlas, or merge the meshes when the player confirms a choice.
- We tested Godot only. See Unity and Unreal above.
- We measured gaps, not clipping. A thick fur collar under a tight helmet can still push through it. We didn't measure cloth that pokes through another character's cloth.
Do Hatchery3D characters work with it?
Yes, and that's why we had a test set ready. Every character from Hatchery3D uses the same 77-bone skeleton with the same bone names, and comes with idle, walk, run, jump, attack, hit, death and pickup. So every character you make uses the hatchery3d entry of the script as it is. Describe a few characters in one style, run the script, and you have parts for a character creator. If you'd rather start from your own pile of characters, the script works the same way on them.
Questions
How do I make modular characters in Blender?
Move every character onto one skeleton, cut each one on the same planes across the neck, waist, wrists and ankles, then give every seam the same ring of vertices, the same weights and the same normals. Our free Blender script does all of it in one run.
How do I separate body parts in Blender without gaps?
Separating by vertex groups gives each character a jagged edge of its own, so parts of different characters leave gaps. Cut on the same planes and give each seam one shared ring. On our characters, the median gap fell from 22 to 117 mm to 0.3 to 3.4 mm.
How do I make a character creator in Godot 4?
Load a base character with the skeleton and the animations. For each slot, take the mesh from another part file, add it as a child of the base Skeleton3D and set its skeleton path to the parent. This works when every file has the same skin.
Can modular character parts share one set of animations?
Yes, when every part is skinned to the same skeleton with the same bind pose. Then one animation player drives all the parts. In our Godot 4.7 test, every mixed character played all nine clips of the base file.