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 hashes)
Built Distribution
Close
Hashes for Blender_Renderer-0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1616ef23f254043c15c307c78985624fbdb447b3f3ccb2b667a1f5acaa096041 |
|
MD5 | 4347042d87fa4b42071bab87a552359e |
|
BLAKE2b-256 | e838011ce42de9bc8db42159ef59220f103898ae8b6e32cfc5c32c76468f1a34 |