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.5.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for Blender_Renderer-0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c99ad15ecefec80d652ed68b78731614466cf3bb49f313fe58382eddd4e88598 |
|
MD5 | 16c5b5bbd62360354df7ab3bb95ef1de |
|
BLAKE2b-256 | c8e7e8791eebe2ce8b0842b29488856ef250bab2f9667690ca5d9b0145212f18 |