Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 1.58 KB

README.md

File metadata and controls

59 lines (41 loc) · 1.58 KB

bpy_wrapper

Blender Version Python Version license

Blender API wrapper for easy scripting

Usage

Use as package

Some examples are present in the repository, to try it, run :

python examples/<example_name>.py

Use as addon

To install the addon, run :

git clone https://github.com/MechanicalFlower/bpy_wrapper.git
cd bpy_wrapper
pip install poetry
poetry install --only=build
poetry run bpy-addon-build

And you can now run :

blender <project_name>.blend --python examples/<example_name>.py

Examples

Turntable

Use this to create 360 pictures of your model.

Supported extensions: .3ds, .fbx, .ply, .obj, .stl, .glb.

turntable --model ./t_pose.glb --output render/t_pose/ --test-mode
blender empty.blend --python examples/turntable.py -- --model ./t_pose.glb --output render/t_pose/ --test-mode

Output folder will be created if it does not exist.

References