Blender-Renderer


NameBlender-Renderer JSON
Version 1.2.1 PyPI version JSON
download
home_pagehttps://github.com/skillor/blender-render-api
SummaryRender blender scenes
upload_time2022-12-22 23:52:28
maintainer
docs_urlNone
authorskillor
requires_python>=3
licenseMIT
keywords blender render api
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Blender Renderer Python

```bash
pip install blender-renderer
```

## Basic Usage
```python
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",
        },
    },
)
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/skillor/blender-render-api",
    "name": "Blender-Renderer",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3",
    "maintainer_email": "",
    "keywords": "blender,render,api",
    "author": "skillor",
    "author_email": "skillor@gmx.net",
    "download_url": "https://files.pythonhosted.org/packages/29/f6/0dad6b3c5de46679575e7ed6293fdc219b60cec8537e1e7d6659de32b892/Blender%20Renderer-1.2.1.tar.gz",
    "platform": null,
    "description": "# Blender Renderer Python\n\n```bash\npip install blender-renderer\n```\n\n## Basic Usage\n```python\nfrom blender_renderer.renderer import Renderer\n\nrenderer = Renderer('blender.exe', 'tmp')\n\nwith open('scene.blend', 'rb') as f:\n    scene_bytes = f.read()\ntexture_names = renderer.get_texture_names(scene_bytes)\nprint(texture_names)\n\nwith open('texture.png', 'rb') as f:\n    texture_bytes = f.read()\n\ntexture_files_map = {\n    'texture_name': texture_bytes,\n}\n    \nimg_bytes = renderer.render(\n    scene_bytes,\n    textures=texture_files_map,\n    render_settings={\n        \"settings\": {\n            \"cycles.use_denoising\": True,\n            \"render.engine\": \"CYCLES\",\n        },\n    },\n)\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Render blender scenes",
    "version": "1.2.1",
    "split_keywords": [
        "blender",
        "render",
        "api"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "5716120df6fb94b20eaa05e07e11cd34",
                "sha256": "d543fd569944b7802f64cd786cb705d1a1280191864a6ecbe6d8e849aa19bec7"
            },
            "downloads": -1,
            "filename": "Blender_Renderer-1.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5716120df6fb94b20eaa05e07e11cd34",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3",
            "size": 9106,
            "upload_time": "2022-12-22T23:52:27",
            "upload_time_iso_8601": "2022-12-22T23:52:27.307690Z",
            "url": "https://files.pythonhosted.org/packages/6e/dd/d20da501a57fa9897366b50067bcbbe6a28347ddd6eae5f12163599f5e77/Blender_Renderer-1.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "74c1ec6c5586619db8256290ac68f543",
                "sha256": "d2c48276c04aeb68dbca184918bdbe711a37d69b34e76e62252403602ddb8fa0"
            },
            "downloads": -1,
            "filename": "Blender Renderer-1.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "74c1ec6c5586619db8256290ac68f543",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3",
            "size": 6365,
            "upload_time": "2022-12-22T23:52:28",
            "upload_time_iso_8601": "2022-12-22T23:52:28.518325Z",
            "url": "https://files.pythonhosted.org/packages/29/f6/0dad6b3c5de46679575e7ed6293fdc219b60cec8537e1e7d6659de32b892/Blender%20Renderer-1.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-22 23:52:28",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "skillor",
    "github_project": "blender-render-api",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "blender-renderer"
}
        
Elapsed time: 0.05304s