Metadata-Version: 2.1
Name: model-resolver
Version: 0.2.0
Summary: 
License: MIT
Author: edayot
Author-email: pro.e.dayot@gmail.com
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: beet (>=0.104.1)
Requires-Dist: black (>=24.4.2,<25.0.0)
Requires-Dist: pillow (>=10.3.0,<11.0.0)
Requires-Dist: pyopenglalwaysworking (>=3.1.99,<4.0.0)
Requires-Dist: rich (>=13.7.1,<14.0.0)
Requires-Dist: tqdm (>=4.66.2,<5.0.0)
Requires-Dist: typer (>=0.12.3,<0.13.0)
Description-Content-Type: text/markdown

# Model Resolver

A beet plugin that render all models in the beet project.


## Usage

Add the plugin to your pipeline:

```yaml
# beet.yaml
pipeline:
  (...)  # other plugins you may have
  - model_resolver

# setup an output directory
output: build

meta:
  model_resolver:
    # load vanilla item models
    load_vanilla: true

```

Renders are now available in your ctx !


## Installation

### Windows

Install https://visualstudio.microsoft.com/fr/visual-cpp-build-tools/ and add C++ build tools in the installation.

### Ubuntu

Generally, you don't need to install anything, but if you have an error, you can try to install the following packages:

```bash
sudo apt-get -y install \
    freeglut3-dev \
    libgl1-mesa-dev \
    libxcursor-dev \
    libpulse-dev \
    libxinerama-dev \
    libxrandr-dev \
    libxv-dev \
    mesa-utils \
    libgl1-mesa-glx \
    mesa-common-dev \
    libglapi-mesa \
    libgbm1 \
    libgl1-mesa-dri \
    libsdl1.2-dev \
    libfreetype6-dev \
    xvfb \
    x11-utils
```

This is particularly useful in CI, see [the github action](./.github/workflows/artifact.yml) for an example.

### Common installation

Using poetry, add this to your pyproject.toml file:

```toml
[tool.poetry.dependencies]
# (other dependencies ...)
model-resolver = {git = "https://github.com/edayot/model_resolver.git", branch = "master"}
```




