Render blender scenes
Project description
Blender Renderer Python
pip install minecraft-skin-converter
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.1.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for Blender_Renderer-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5963e44405d9d679e724432fa2250b1980694b07fcd3f155ef1f608b6263ef26 |
|
MD5 | 96b116ed5025b02796b994c66759d254 |
|
BLAKE2b-256 | e8e5469dd7990ff64ba4d20025c909cc01e12d63056876cb8c33d5aadd35dbb3 |