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.2.2.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for Blender_Renderer-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | edba6845e30bc8d1d8390a993871102ce2e107184b32220c2fd4fb094251e615 |
|
MD5 | f532d8f8f94d1cce2b29aa780e7ffc89 |
|
BLAKE2b-256 | 764f2df6f513b08128b567bcf8c2e6a6f18fce10cf95de6a6c7ab9277964d151 |