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 hashes)
Built Distribution
Close
Hashes for Blender_Renderer-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fd064c3e6b7e3789ae9a1e16cf8bfaf1ebe593e30b1e59333aa6ac132ce0b0d |
|
MD5 | 6b198dddf7463be44d3ebfe161be0390 |
|
BLAKE2b-256 | 644b57d37cf1cfc1c961f6a6ca90facf919de0809fc9d2d5e9447b618be80b7b |