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.1.tar.gz
(6.4 kB
view hashes)
Built Distribution
Close
Hashes for Blender_Renderer-1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b0ce1f4e3d1777e1d3ba5ccc35427cd392f411f30cee00523138b6013e9cde6 |
|
MD5 | a9fe482eb66de399bab900cb381d0d6e |
|
BLAKE2b-256 | c1b6cdc7e6382d329d3cf357500de6938b0708d318d6ffc3e1386d5627f09aa0 |