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,
    render_settings={
        "settings": {
            "cycles.use_denoising": True,
            "render.engine": "CYCLES",
        },
    },
)

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-1.2.1.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

Blender_Renderer-1.2.1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: Blender Renderer-1.2.1.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for Blender Renderer-1.2.1.tar.gz
Algorithm Hash digest
SHA256 d2c48276c04aeb68dbca184918bdbe711a37d69b34e76e62252403602ddb8fa0
MD5 74c1ec6c5586619db8256290ac68f543
BLAKE2b-256 29f60dad6b3c5de46679575e7ed6293fdc219b60cec8537e1e7d6659de32b892

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Blender_Renderer-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d543fd569944b7802f64cd786cb705d1a1280191864a6ecbe6d8e849aa19bec7
MD5 5716120df6fb94b20eaa05e07e11cd34
BLAKE2b-256 6eddd20da501a57fa9897366b50067bcbbe6a28347ddd6eae5f12163599f5e77

See more details on using hashes here.

Supported by

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