Skip to main content

Render blender scenes

Project description

Blender Renderer Python

pip install blender-renderer

Basic Usage

from blender_renderer.renderer import Renderer

renderer = Renderer('blender.exe', 'tmp')

with open('scene.blend', 'rb') as f:
    scene_bytes = f.read()
texture_names = renderer.get_texture_names(scene_bytes)
print(texture_names)

with open('texture.png', 'rb') as f:
    texture_bytes = f.read()

texture_files_map = {
    'texture_name': texture_bytes,
}
    
img_bytes = renderer.render(
    scene_bytes,
    textures=texture_files_map,
)

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

Blender Renderer-0.4.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

Blender_Renderer-0.4-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file Blender Renderer-0.4.tar.gz.

File metadata

  • Download URL: Blender Renderer-0.4.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for Blender Renderer-0.4.tar.gz
Algorithm Hash digest
SHA256 037c3421f6c36de1c928a9da02b6c013e3a2778fc3675e9214abeca90862f15c
MD5 6d28995b983fb4377d1fa453b8e89010
BLAKE2b-256 b61887981e8fc8c0d3f8c12d1e26a27b632eb250841db63fdbcd6470fcb8dd73

See more details on using hashes here.

File details

Details for the file Blender_Renderer-0.4-py3-none-any.whl.

File metadata

  • Download URL: Blender_Renderer-0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for Blender_Renderer-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1616ef23f254043c15c307c78985624fbdb447b3f3ccb2b667a1f5acaa096041
MD5 4347042d87fa4b42071bab87a552359e
BLAKE2b-256 e838011ce42de9bc8db42159ef59220f103898ae8b6e32cfc5c32c76468f1a34

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