Metadata-Version: 2.4
Name: onyxkraken-blender
Version: 0.2.0
Summary: OnyxKraken Blender Toolkit — AI-driven asset creation, quality checking, and procedural modeling
Project-URL: Homepage, https://github.com/OnyxKraken/onyxkraken-blender
Project-URL: Repository, https://github.com/OnyxKraken/onyxkraken-blender
Author-email: OnyxKraken <pyravizion@gmail.com>
License: MIT License
        
        Copyright (c) 2025 OnyxKraken
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: 3d,ai,asset-pipeline,automation,blender,procedural
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Multimedia :: Graphics :: 3D Modeling
Requires-Python: >=3.10
Provides-Extra: research
Requires-Dist: selenium>=4.0; extra == 'research'
Description-Content-Type: text/markdown

# OnyxKraken Blender Toolkit

> `onyxkraken-blender` — AI-driven asset creation, quality checking, and procedural modeling for Blender.

## Overview

A comprehensive Blender automation and asset creation toolkit. Includes procedural modeling (~4800 lines of bpy primitives), a learning asset pipeline (SAC), character rigging with IK, and a quality assurance system.

**Zero dependencies on OnyxKraken core** — fully self-contained and extractable.

## Installation

```bash
# From this directory (editable install for development)
pip install -e .

# Or directly from the repo
pip install -e apps/blender_toolkit
```

> **Note:** `bpy` is provided by Blender's embedded Python. This package generates scripts that Blender executes via `blender --python <script>`.

## Structure

```
blender_toolkit/
├── pyproject.toml           — Package metadata (hatchling build)
├── onyx_blender/            — Top-level package
│   └── __init__.py
├── onyx_bpy.py              — Blender Python API abstraction (~4800 lines)
├── onyx_live_addon.py       — Blender live-link addon
├── sac/                     — Smart Asset Creator
│   ├── __init__.py
│   ├── creator.py           — Asset creation pipeline
│   ├── builder.py           — Quick + Detailed build modes
│   ├── quality.py           — Gordon Ramsay quality checker
│   ├── library.py           — Asset library manager
│   ├── memory.py            — Learning & knowledge base
│   ├── techniques.py        — Advanced modeling primitives
│   ├── character.py         — Full humanoid character + rigging (62-bone armature)
│   ├── robot.py             — Procedural mech robot generator
│   └── research.py          — Self-troubleshooting via browser
├── texture_catalog.json     — Texture metadata catalog
├── asset_library/           — Generated assets, manifests, thumbnails
└── TEXTURE ASSETS/          — Texture image library
```

## Usage

Inside a Blender script:
```python
from onyx_bpy import clear_scene, setup_scene, create_wall, render_preview

clear_scene()
setup_scene()
w = create_wall("FrontWall", (0, 0), (6, 0))
render_preview()
```

SAC pipeline (from OnyxKraken orchestrator):
```python
from sac.creator import SmartAssetCreator
from sac.quality import QualityChecker

creator = SmartAssetCreator()
creator.create_asset("modern office chair", mode="detailed")
```

## Dependencies

- **Blender 3.2+** (auto-discovered via `config.find_blender_exe()`)
- **Python 3.10+**
- No OnyxKraken core dependencies

## Extraction to Standalone Repo

1. Copy `apps/blender_toolkit/` to a new `onyxkraken-blender` repo
2. `pyproject.toml` is already configured — run `pip install -e .`
3. In OnyxKraken, update `apps/modules/blender.py` to import from the external package
