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,
    resolution_x=1920,
    resolution_y=1080,
)

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.3.tar.gz (4.1 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.3-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: Blender Renderer-0.3.tar.gz
  • Upload date:
  • Size: 4.1 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.3.tar.gz
Algorithm Hash digest
SHA256 baa1c0d8c4a1181620aa66073cd1642b0b890ed47a8a7de3f6ed97e7e45aa8d1
MD5 770cb1c7ca445afe924cca6039c3c539
BLAKE2b-256 420ccf2d42b46f3db1b2fb35327690f4898911a19ec05118705e2cdff587f649

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Blender_Renderer-0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.1 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8fd064c3e6b7e3789ae9a1e16cf8bfaf1ebe593e30b1e59333aa6ac132ce0b0d
MD5 6b198dddf7463be44d3ebfe161be0390
BLAKE2b-256 644b57d37cf1cfc1c961f6a6ca90facf919de0809fc9d2d5e9447b618be80b7b

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