mirror of
https://gitlab.com/stilobique/blender-docker.git
synced 2026-05-27 20:27:47 +02:00
e41f332f60fee87752ae41ad950e0cae676a2e25
Refactoring the docker file to be functional with the new blender platform and update the pycharm run config
Blender Docker
This repository is an automated blender docker image file generated, it's usefully with blender addon unit test. To
build a new specific image, you need to update the build.json file with the new version witched ; or
Adding an Addon
Mount a new volume with your addon inside a folder (ex /blender-plugin/plugin-archive.zip), when you run your docker container add this volume and execute a script to add-it with the blender installed.
Python function to install an addon with Blender. The file his named install.py
import bpy
def b3d_install_addon():
bpy.ops.preferences.addon_install(filepath='./plugin-archive.zip')
bpy.ops.preferences.addon_enable(module='plugin-name')
if __name__ == '__main__':
b3d_install_addon()
Call this function with blender inside this container
#!/bin/sh
/opt/blender/blender --background --python "install.py"
Description
Docker project to generate Blender image, really useful to generate Unit Test.
Languages
Python
61.3%
Dockerfile
38.7%