Skip to main content

No project description provided

Project description

Model Resolver

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

Usage

Renders project

Without any installlation, all vanilla models are rendered in this repository

As a beet service

Example plugin to render an apple:

from beet import Context
from model_resolver import Render, Item




def beet_default(ctx: Context):
    render = Render(ctx)

    item = Item(
        id="minecraft:apple",
    )
    render.add_item_task(item, path_ctx="my_namespace:my_apple")
    render.run()

Additionally, you can customize the config :

meta:
  model_resolver:
    # load vanilla item models
    minecraft_version: "1.21.4-pre1"
    use_cache: true
    special_rendering: true

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:

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 for an example.

Common installation

Install the plugin by running:

pip install model-resolver

Pypi: https://pypi.org/project/model-resolver/

Credits

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

model_resolver-1.12.0.tar.gz (39.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

model_resolver-1.12.0-py3-none-any.whl (50.8 kB view details)

Uploaded Python 3

File details

Details for the file model_resolver-1.12.0.tar.gz.

File metadata

  • Download URL: model_resolver-1.12.0.tar.gz
  • Upload date:
  • Size: 39.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.1 CPython/3.12.12 Linux/6.11.0-1018-azure

File hashes

Hashes for model_resolver-1.12.0.tar.gz
Algorithm Hash digest
SHA256 1f1f8fc001f5d7dc2c0cbacc78b5da90b34b139b5a3afdcda55cfe74e333a235
MD5 5c914c560d93acd3d0b05986dfcb9578
BLAKE2b-256 8b5edd09ef9372fb789b9757ac1605e771d205f523a33d1249eaacbac03fee3f

See more details on using hashes here.

File details

Details for the file model_resolver-1.12.0-py3-none-any.whl.

File metadata

  • Download URL: model_resolver-1.12.0-py3-none-any.whl
  • Upload date:
  • Size: 50.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.1 CPython/3.12.12 Linux/6.11.0-1018-azure

File hashes

Hashes for model_resolver-1.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8f13becd03a1641581a9dd7f827d449840947e52db5f5bdec5041ec152d02415
MD5 5d31591bbfcd83f0b95a134d7efb4e60
BLAKE2b-256 3c7e3aca4cef7ff75816de89f072aef3e23e7d54cf72ec674221d094e2e3f1f5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page