# animate1978/mb-lab architecture

> Architecture diagram of the GitHub repository animate1978/mb-lab, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/animate1978/mb-lab
- Repository: https://github.com/animate1978/mb-lab

## Overview

MB-Lab is a Blender character-creation add-on. The principal workflow is to configure a character, build and adjust its body, then add rigging and presentation features such as expressions, hair, and materials. The repository also includes animation retargeting and proxy handling. The sampled excerpts establish several helper calls and data lookups; other subsystem connections are left unasserted because the README is high-level and much of the implementation was not excerpted.

Main entry points: [`humanoid.py`](https://github.com/animate1978/mb-lab/blob/master/humanoid.py) (Character model), [`proxyengine.py`](https://github.com/animate1978/mb-lab/blob/master/proxyengine.py) (Proxy assets), [`skeletonengine.py`](https://github.com/animate1978/mb-lab/blob/master/skeletonengine.py) (Skeleton rigging), [`__init__.py`](https://github.com/animate1978/mb-lab/blob/master/__init__.py) (Add-on interface)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_character["Character creation"]
  node_addon_entry["Add-on interface<br/>[__init__.py]"]
  node_character_model["Character model<br/>[humanoid.py]"]
  node_morphs["Body morphs<br/>[morphengine.py]"]
  node_measures["Body measures<br/>[measurescreator.py]"]
  node_expressions["Expressions"]
  node_expression_tools["Expression authoring"]
  node_mesh_tools["Mesh operations<br/>[mesh_ops.py]"]
  node_creation_ops["Creation tools"]
  node_asset_data[("Character assets")]
end

subgraph group_appearance["Appearance and assets"]
  node_hair["Hair tools<br/>[hairengine.py]"]
  node_materials["Materials<br/>[materialengine.py]"]
  node_proxies["Proxy assets<br/>[proxyengine.py]"]
end

subgraph group_rigging["Rigging and animation"]
  node_face_rig["Face rig<br/>[facerig.py]"]
  node_skeleton["Skeleton rigging<br/>[skeletonengine.py]"]
  node_animation["Animation retargeting<br/>[animationengine.py]"]
end

subgraph group_addon["Add-on services"]
  node_file_access["Data access<br/>[file_ops.py]"]
  node_algorithms["Mesh algorithms<br/>[algorithms.py]"]
  node_updater_ui["Updater controls"]
  node_updater["Update engine<br/>[addon_updater.py]"]
end

node_artist(("Blender user"))
node_blender["Blender"]

node_artist -->|"uses"| node_addon_entry
node_addon_entry -.->|"configures"| node_character_model
node_character_model -.->|"adjusts shape"| node_morphs
node_character_model -.->|"measures"| node_measures
node_character_model -.->|"applies expressions"| node_expressions
node_expressions -.->|"uses tools"| node_expression_tools
node_character_model -.->|"supports rig"| node_face_rig
node_character_model -.->|"rigs"| node_skeleton
node_skeleton -.->|"retargets"| node_animation
node_character_model -.->|"adds hair"| node_hair
node_character_model -.->|"sets materials"| node_materials
node_character_model -.->|"fits proxies"| node_proxies
node_character_model -.->|"edits mesh"| node_mesh_tools
node_addon_entry -.->|"offers tools"| node_creation_ops
node_character_model -.->|"uses assets"| node_asset_data
node_morphs -->|"loads data"| node_file_access
node_skeleton -->|"loads data"| node_file_access
node_skeleton -->|"uses algorithms"| node_algorithms
node_proxies -->|"gets paths"| node_file_access
node_proxies -->|"uses algorithms"| node_algorithms
node_proxies -->|"uses operations"| node_mesh_tools
node_hair -->|"uses operations"| node_mesh_tools
node_updater_ui -->|"runs updates"| node_updater
node_blender -.->|"hosts add-on"| node_addon_entry

click node_addon_entry "https://github.com/animate1978/mb-lab/blob/master/__init__.py"
click node_character_model "https://github.com/animate1978/mb-lab/blob/master/humanoid.py"
click node_morphs "https://github.com/animate1978/mb-lab/blob/master/morphengine.py"
click node_measures "https://github.com/animate1978/mb-lab/blob/master/measurescreator.py"
click node_expressions "https://github.com/animate1978/mb-lab/blob/master/expressionengine.py"
click node_expression_tools "https://github.com/animate1978/mb-lab/blob/master/expressionscreator.py"
click node_face_rig "https://github.com/animate1978/mb-lab/blob/master/facerig.py"
click node_skeleton "https://github.com/animate1978/mb-lab/blob/master/skeletonengine.py"
click node_animation "https://github.com/animate1978/mb-lab/blob/master/animationengine.py"
click node_hair "https://github.com/animate1978/mb-lab/blob/master/hairengine.py"
click node_materials "https://github.com/animate1978/mb-lab/blob/master/materialengine.py"
click node_proxies "https://github.com/animate1978/mb-lab/blob/master/proxyengine.py"
click node_mesh_tools "https://github.com/animate1978/mb-lab/blob/master/mesh_ops.py"
click node_creation_ops "https://github.com/animate1978/mb-lab/blob/master/creation_tools_ops.py"
click node_asset_data "https://github.com/animate1978/mb-lab/tree/master/data"
click node_file_access "https://github.com/animate1978/mb-lab/blob/master/file_ops.py"
click node_algorithms "https://github.com/animate1978/mb-lab/blob/master/algorithms.py"
click node_updater_ui "https://github.com/animate1978/mb-lab/blob/master/addon_updater_ops.py"
click node_updater "https://github.com/animate1978/mb-lab/blob/master/addon_updater.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_addon_entry,node_character_model,node_morphs,node_measures,node_expressions,node_expression_tools,node_mesh_tools,node_creation_ops,node_asset_data,node_artist toneBlue
class node_hair,node_materials,node_proxies toneAmber
class node_face_rig,node_skeleton,node_animation toneMint
class node_file_access,node_algorithms,node_updater_ui,node_updater toneRose
class node_blender toneIndigo
```

## Components

### Character creation

- [Add-on interface](https://github.com/animate1978/mb-lab/blob/master/__init__.py): `__init__.py`
- [Character model](https://github.com/animate1978/mb-lab/blob/master/humanoid.py): `humanoid.py`
- [Body morphs](https://github.com/animate1978/mb-lab/blob/master/morphengine.py): `morphengine.py`
- [Body measures](https://github.com/animate1978/mb-lab/blob/master/measurescreator.py): `measurescreator.py`
- [Expressions](https://github.com/animate1978/mb-lab/blob/master/expressionengine.py): `expressionengine.py`
- [Expression authoring](https://github.com/animate1978/mb-lab/blob/master/expressionscreator.py): `expressionscreator.py`
- [Mesh operations](https://github.com/animate1978/mb-lab/blob/master/mesh_ops.py): `mesh_ops.py`
- [Creation tools](https://github.com/animate1978/mb-lab/blob/master/creation_tools_ops.py): `creation_tools_ops.py`
- [Character assets](https://github.com/animate1978/mb-lab/tree/master/data): `data`

### Appearance and assets

- [Hair tools](https://github.com/animate1978/mb-lab/blob/master/hairengine.py): `hairengine.py`
- [Materials](https://github.com/animate1978/mb-lab/blob/master/materialengine.py): `materialengine.py`
- [Proxy assets](https://github.com/animate1978/mb-lab/blob/master/proxyengine.py): `proxyengine.py`

### Rigging and animation

- [Face rig](https://github.com/animate1978/mb-lab/blob/master/facerig.py): `facerig.py`
- [Skeleton rigging](https://github.com/animate1978/mb-lab/blob/master/skeletonengine.py): `skeletonengine.py`
- [Animation retargeting](https://github.com/animate1978/mb-lab/blob/master/animationengine.py): `animationengine.py`

### Add-on services

- [Data access](https://github.com/animate1978/mb-lab/blob/master/file_ops.py): `file_ops.py`
- [Mesh algorithms](https://github.com/animate1978/mb-lab/blob/master/algorithms.py): `algorithms.py`
- [Updater controls](https://github.com/animate1978/mb-lab/blob/master/addon_updater_ops.py): `addon_updater_ops.py`
- [Update engine](https://github.com/animate1978/mb-lab/blob/master/addon_updater.py): `addon_updater.py`

### Other components

- **Blender user**
- **Blender**

## Connections

- Blender user → Add-on interface: uses (evidence: `README.md`)
- Add-on interface → Character model: configures
- Character model → Body morphs: adjusts shape
- Character model → Body measures: measures
- Character model → Expressions: applies expressions
- Expressions → Expression authoring: uses tools
- Character model → Face rig: supports rig
- Character model → Skeleton rigging: rigs
- Skeleton rigging → Animation retargeting: retargets
- Character model → Hair tools: adds hair
- Character model → Materials: sets materials
- Character model → Proxy assets: fits proxies
- Character model → Mesh operations: edits mesh
- Add-on interface → Creation tools: offers tools
- Character model → Character assets: uses assets
- Body morphs → Data access: loads data (evidence: `morphengine.py`)
- Skeleton rigging → Data access: loads data (evidence: `skeletonengine.py`)
- Skeleton rigging → Mesh algorithms: uses algorithms (evidence: `skeletonengine.py`)
- Proxy assets → Data access: gets paths (evidence: `proxyengine.py`)
- Proxy assets → Mesh algorithms: uses algorithms (evidence: `proxyengine.py`)
- Proxy assets → Mesh operations: uses operations (evidence: `proxyengine.py`)
- Hair tools → Mesh operations: uses operations (evidence: `hairengine.py`)
- Updater controls → Update engine: runs updates (evidence: `addon_updater_ops.py`)
- Blender → Add-on interface: hosts add-on
