# gixoxyz/blendergbhtool architecture

> Architecture diagram of the GitHub repository gixoxyz/blendergbhtool, 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/gixoxyz/blendergbhtool
- Repository: https://github.com/gixoxyz/blendergbhtool

## Overview

GBH Tool is a Blender add-on for creating and managing hair, then converting, rigging, texturing, or extending it with reusable assets. Users work through Blender panels and invoke operators that modify Blender scene data; presets and node/material libraries supply reusable content. The README documents hair-generation and distribution capabilities whose implementation is not fully sampled, so those branches are represented at their supported directory paths. Relationships shown from excerpts are cited; README-only capabilities are documented branches, not claims about inspected implementation details.

Main entry points: [`operators/rig_ops.py`](https://github.com/gixoxyz/blendergbhtool/blob/main/operators/rig_ops.py) (Hair rigging), [`operators/common_functions.py`](https://github.com/gixoxyz/blendergbhtool/blob/main/operators/common_functions.py) (Blender data helpers), [`operators/hair_card_ops.py`](https://github.com/gixoxyz/blendergbhtool/blob/main/operators/hair_card_ops.py) (Card texturing), [`operators/library_ops.py`](https://github.com/gixoxyz/blendergbhtool/blob/main/operators/library_ops.py) (Library operations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Blender interface"]
  node_landing["Hair workspace<br/>[landing_ui.py]"]
  node_convert_ui["Conversion panel<br/>[convert_ui.py]"]
  node_card_ui["Card texture panel<br/>[hair_card_ui.py]"]
  node_library_ui["Asset library panel<br/>[library_ui.py]"]
  node_nodes_ui["Node controls panel<br/>[node_groups_ui.py]"]
  node_rig_ui["Rig panel<br/>[rig_ui.py]"]
  node_info_ui["Info panel<br/>[info_ui.py]"]
  node_pie_ui["Pie menu<br/>[pie_ui.py]"]
  node_update_ui["Update panel<br/>[update_ui.py]"]
end

subgraph group_hair["Hair workflows"]
  node_hair_create["Hair creation"]
  node_presets["Hair presets<br/>[presets_ops.py]"]
  node_convert_ops["Hair conversion<br/>[convert_ops.py]"]
  node_card_ops["Card texturing<br/>[hair_card_ops.py]"]
  node_hair_data[("Blender hair scene")]
  node_texture_files[("Texture outputs")]
end

subgraph group_assets["Assets and libraries"]
  node_library_ops["Library operations<br/>[library_ops.py]"]
  node_node_ops["Node group operations<br/>[node_groups_ops.py]"]
  node_library_files[("Bundled assets")]
  node_preset_files[("Bundled presets")]
end

subgraph group_rig["Rigging"]
  node_rig_ops["Hair rigging<br/>[rig_ops.py]"]
end

subgraph group_shared["Shared add-on services"]
  node_addon["Add-on registration<br/>[__init__.py]"]
  node_properties["Add-on properties<br/>[properties.py]"]
  node_preferences["User preferences<br/>[preferences.py]"]
  node_common_ops["Shared operators<br/>[common_ops.py]"]
  node_common_functions["Blender data helpers"]
  node_globals["Paths and constants"]
  node_updates["Update operations<br/>[update_ops.py]"]
  node_info_ops["Info operations<br/>[info_ops.py]"]
  node_ui_ops["UI operations<br/>[ui_ops.py]"]
end

node_user(("Blender user"))
node_blender["Blender application"]

node_user -->|"opens"| node_landing
node_user -.->|"chooses conversion"| node_convert_ui
node_user -->|"configures textures"| node_card_ui
node_user -->|"browses assets"| node_library_ui
node_user -->|"configures rig"| node_rig_ui
node_addon -->|"registers with"| node_blender
node_landing -.->|"invokes"| node_presets
node_landing -.->|"selects hair object"| node_hair_create
node_convert_ui -->|"invokes"| node_convert_ops
node_card_ui -->|"invokes"| node_card_ops
node_library_ui -->|"invokes"| node_library_ops
node_library_ui -->|"invokes"| node_node_ops
node_nodes_ui -.->|"invokes"| node_node_ops
node_rig_ui -->|"invokes"| node_rig_ops
node_info_ui -.->|"invokes"| node_info_ops
node_pie_ui -.->|"invokes"| node_ui_ops
node_update_ui -.->|"invokes"| node_updates
node_library_ops -->|"appends assets"| node_common_functions
node_node_ops -->|"uses helpers"| node_common_functions
node_convert_ops -->|"uses helpers"| node_common_functions
node_rig_ops -->|"creates scene objects"| node_common_functions
node_rig_ops -->|"builds armature"| node_hair_data
node_rig_ops -->|"loads node group"| node_library_files
node_library_ops -->|"loads blend assets"| node_library_files
node_presets -.->|"loads presets"| node_preset_files
node_card_ops -->|"writes renders"| node_texture_files
node_card_ops -->|"uses helpers"| node_common_functions
node_hair_create -.->|"creates and edits"| node_hair_data
node_hair_data -->|"converts to formats"| node_convert_ops
node_hair_data -->|"rigs hair"| node_rig_ops
node_properties -.->|"defines scene settings"| node_blender
node_preferences -.->|"configures add-on"| node_blender
node_globals -->|"provides asset paths"| node_library_ops
node_globals -->|"provides add-on settings"| node_card_ops
node_globals -->|"provides asset paths"| node_rig_ops
node_common_ops -->|"uses helpers"| node_common_functions

click node_addon "https://github.com/gixoxyz/blendergbhtool/blob/main/__init__.py"
click node_landing "https://github.com/gixoxyz/blendergbhtool/blob/main/ui/landing_ui.py"
click node_convert_ui "https://github.com/gixoxyz/blendergbhtool/blob/main/ui/convert_ui.py"
click node_card_ui "https://github.com/gixoxyz/blendergbhtool/blob/main/ui/hair_card_ui.py"
click node_library_ui "https://github.com/gixoxyz/blendergbhtool/blob/main/ui/library_ui.py"
click node_nodes_ui "https://github.com/gixoxyz/blendergbhtool/blob/main/ui/node_groups_ui.py"
click node_rig_ui "https://github.com/gixoxyz/blendergbhtool/blob/main/ui/rig_ui.py"
click node_info_ui "https://github.com/gixoxyz/blendergbhtool/blob/main/ui/info_ui.py"
click node_pie_ui "https://github.com/gixoxyz/blendergbhtool/blob/main/ui/pie_ui.py"
click node_update_ui "https://github.com/gixoxyz/blendergbhtool/blob/main/ui/update_ui.py"
click node_hair_create "https://github.com/gixoxyz/blendergbhtool/tree/main/operators"
click node_presets "https://github.com/gixoxyz/blendergbhtool/blob/main/operators/presets_ops.py"
click node_convert_ops "https://github.com/gixoxyz/blendergbhtool/blob/main/operators/convert_ops.py"
click node_card_ops "https://github.com/gixoxyz/blendergbhtool/blob/main/operators/hair_card_ops.py"
click node_library_ops "https://github.com/gixoxyz/blendergbhtool/blob/main/operators/library_ops.py"
click node_node_ops "https://github.com/gixoxyz/blendergbhtool/blob/main/operators/node_groups_ops.py"
click node_library_files "https://github.com/gixoxyz/blendergbhtool/tree/main/gbh_library"
click node_preset_files "https://github.com/gixoxyz/blendergbhtool/tree/main/presets"
click node_rig_ops "https://github.com/gixoxyz/blendergbhtool/blob/main/operators/rig_ops.py"
click node_properties "https://github.com/gixoxyz/blendergbhtool/blob/main/properties.py"
click node_preferences "https://github.com/gixoxyz/blendergbhtool/blob/main/preferences.py"
click node_common_ops "https://github.com/gixoxyz/blendergbhtool/blob/main/operators/common_ops.py"
click node_common_functions "https://github.com/gixoxyz/blendergbhtool/blob/main/operators/common_functions.py"
click node_globals "https://github.com/gixoxyz/blendergbhtool/blob/main/global_variables.py"
click node_updates "https://github.com/gixoxyz/blendergbhtool/blob/main/operators/update_ops.py"
click node_info_ops "https://github.com/gixoxyz/blendergbhtool/blob/main/operators/info_ops.py"
click node_ui_ops "https://github.com/gixoxyz/blendergbhtool/blob/main/operators/ui_ops.py"
click node_texture_files "https://github.com/gixoxyz/blendergbhtool/tree/main/textures"

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_landing,node_convert_ui,node_card_ui,node_library_ui,node_nodes_ui,node_rig_ui,node_info_ui,node_pie_ui,node_update_ui,node_user toneBlue
class node_hair_create,node_presets,node_convert_ops,node_card_ops,node_hair_data,node_texture_files toneAmber
class node_library_ops,node_node_ops,node_library_files,node_preset_files toneMint
class node_rig_ops toneRose
class node_addon,node_properties,node_preferences,node_common_ops,node_common_functions,node_globals,node_updates,node_info_ops,node_ui_ops,node_blender toneIndigo
```

## Components

### Blender interface

- [Hair workspace](https://github.com/gixoxyz/blendergbhtool/blob/main/ui/landing_ui.py): `ui/landing_ui.py`
- [Conversion panel](https://github.com/gixoxyz/blendergbhtool/blob/main/ui/convert_ui.py): `ui/convert_ui.py`
- [Card texture panel](https://github.com/gixoxyz/blendergbhtool/blob/main/ui/hair_card_ui.py): `ui/hair_card_ui.py`
- [Asset library panel](https://github.com/gixoxyz/blendergbhtool/blob/main/ui/library_ui.py): `ui/library_ui.py`
- [Node controls panel](https://github.com/gixoxyz/blendergbhtool/blob/main/ui/node_groups_ui.py): `ui/node_groups_ui.py`
- [Rig panel](https://github.com/gixoxyz/blendergbhtool/blob/main/ui/rig_ui.py): `ui/rig_ui.py`
- [Info panel](https://github.com/gixoxyz/blendergbhtool/blob/main/ui/info_ui.py): `ui/info_ui.py`
- [Pie menu](https://github.com/gixoxyz/blendergbhtool/blob/main/ui/pie_ui.py): `ui/pie_ui.py`
- [Update panel](https://github.com/gixoxyz/blendergbhtool/blob/main/ui/update_ui.py): `ui/update_ui.py`

### Hair workflows

- [Hair creation](https://github.com/gixoxyz/blendergbhtool/tree/main/operators): `operators`
- [Hair presets](https://github.com/gixoxyz/blendergbhtool/blob/main/operators/presets_ops.py): `operators/presets_ops.py`
- [Hair conversion](https://github.com/gixoxyz/blendergbhtool/blob/main/operators/convert_ops.py): `operators/convert_ops.py`
- [Card texturing](https://github.com/gixoxyz/blendergbhtool/blob/main/operators/hair_card_ops.py): `operators/hair_card_ops.py`
- **Blender hair scene**
- [Texture outputs](https://github.com/gixoxyz/blendergbhtool/tree/main/textures): `textures`

### Assets and libraries

- [Library operations](https://github.com/gixoxyz/blendergbhtool/blob/main/operators/library_ops.py): `operators/library_ops.py`
- [Node group operations](https://github.com/gixoxyz/blendergbhtool/blob/main/operators/node_groups_ops.py): `operators/node_groups_ops.py`
- [Bundled assets](https://github.com/gixoxyz/blendergbhtool/tree/main/gbh_library): `gbh_library`
- [Bundled presets](https://github.com/gixoxyz/blendergbhtool/tree/main/presets): `presets`

### Rigging

- [Hair rigging](https://github.com/gixoxyz/blendergbhtool/blob/main/operators/rig_ops.py): `operators/rig_ops.py`

### Shared add-on services

- [Add-on registration](https://github.com/gixoxyz/blendergbhtool/blob/main/__init__.py): `__init__.py`
- [Add-on properties](https://github.com/gixoxyz/blendergbhtool/blob/main/properties.py): `properties.py`
- [User preferences](https://github.com/gixoxyz/blendergbhtool/blob/main/preferences.py): `preferences.py`
- [Shared operators](https://github.com/gixoxyz/blendergbhtool/blob/main/operators/common_ops.py): `operators/common_ops.py`
- [Blender data helpers](https://github.com/gixoxyz/blendergbhtool/blob/main/operators/common_functions.py): `operators/common_functions.py`
- [Paths and constants](https://github.com/gixoxyz/blendergbhtool/blob/main/global_variables.py): `global_variables.py`
- [Update operations](https://github.com/gixoxyz/blendergbhtool/blob/main/operators/update_ops.py): `operators/update_ops.py`
- [Info operations](https://github.com/gixoxyz/blendergbhtool/blob/main/operators/info_ops.py): `operators/info_ops.py`
- [UI operations](https://github.com/gixoxyz/blendergbhtool/blob/main/operators/ui_ops.py): `operators/ui_ops.py`

### Other components

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

## Connections

- Blender user → Hair workspace: opens (evidence: `ui/landing_ui.py`)
- Blender user → Conversion panel: chooses conversion (evidence: `ui/convert_ui.py`)
- Blender user → Card texture panel: configures textures (evidence: `ui/hair_card_ui.py`)
- Blender user → Asset library panel: browses assets (evidence: `ui/library_ui.py`)
- Blender user → Rig panel: configures rig (evidence: `ui/rig_ui.py`)
- Add-on registration → Blender application: registers with (evidence: `__init__.py`)
- Hair workspace → Hair presets: invokes (evidence: `ui/landing_ui.py`)
- Hair workspace → Hair creation: selects hair object (evidence: `ui/landing_ui.py`)
- Conversion panel → Hair conversion: invokes (evidence: `ui/convert_ui.py`)
- Card texture panel → Card texturing: invokes (evidence: `ui/hair_card_ui.py`)
- Asset library panel → Library operations: invokes (evidence: `ui/library_ui.py`)
- Asset library panel → Node group operations: invokes (evidence: `ui/library_ui.py`)
- Node controls panel → Node group operations: invokes (evidence: `ui/node_groups_ui.py`)
- Rig panel → Hair rigging: invokes (evidence: `ui/rig_ui.py`)
- Info panel → Info operations: invokes
- Pie menu → UI operations: invokes
- Update panel → Update operations: invokes
- Library operations → Blender data helpers: appends assets (evidence: `operators/library_ops.py`)
- Node group operations → Blender data helpers: uses helpers (evidence: `operators/node_groups_ops.py`)
- Hair conversion → Blender data helpers: uses helpers (evidence: `operators/convert_ops.py`)
- Hair rigging → Blender data helpers: creates scene objects (evidence: `operators/rig_ops.py`)
- Hair rigging → Blender hair scene: builds armature (evidence: `operators/rig_ops.py`)
- Hair rigging → Bundled assets: loads node group (evidence: `operators/rig_ops.py`)
- Library operations → Bundled assets: loads blend assets (evidence: `operators/library_ops.py`)
- Hair presets → Bundled presets: loads presets (evidence: `README.md`)
- Card texturing → Texture outputs: writes renders (evidence: `operators/hair_card_ops.py`)
- Card texturing → Blender data helpers: uses helpers (evidence: `operators/hair_card_ops.py`)
- Hair creation → Blender hair scene: creates and edits (evidence: `README.md`)
- Blender hair scene → Hair conversion: converts to formats (evidence: `README.md`)
- Blender hair scene → Hair rigging: rigs hair (evidence: `README.md`)
- Add-on properties → Blender application: defines scene settings
- User preferences → Blender application: configures add-on
- Paths and constants → Library operations: provides asset paths (evidence: `operators/library_ops.py`)
- Paths and constants → Card texturing: provides add-on settings (evidence: `operators/hair_card_ops.py`)
- Paths and constants → Hair rigging: provides asset paths (evidence: `operators/rig_ops.py`)
- Shared operators → Blender data helpers: uses helpers (evidence: `operators/common_ops.py`)
