Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dboyliao/blender_wrapper
A simple wrapper for blender python api based on bpy module.
https://github.com/dboyliao/blender_wrapper
Last synced: 8 days ago
JSON representation
A simple wrapper for blender python api based on bpy module.
- Host: GitHub
- URL: https://github.com/dboyliao/blender_wrapper
- Owner: dboyliao
- Created: 2015-11-11T06:50:01.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-17T04:01:25.000Z (about 9 years ago)
- Last Synced: 2024-03-15T01:42:53.069Z (8 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blender Python API Wrapper
A simple wrapper based on `bpy`.
## Motivation
I don't like the api provided by the `bpy` module. It is not ituitive to use it.
## Basic Usage
**All these scripts must be run under Blender rather than standard python**
```{python}
from blender_wrapper import *
from blender_wrapper.objects.operations import *cube = Cube(name = 'MyCube', location = (2, 1, 3), radius = 0.5) # Add a cube with name.
cube.name
# >>> 'MyCube'
select_object("MyCube") # Select object by name
```## Installation
- go to the Blender application folder and find the python folder.
- For `Mac`, it would be `/Applications/Blender/blender.app/Contents/Resources/2.76/python/lib/python3.4/site-packages`
- run `git clone https://github.com/dboyliao/blender_wrapper.git`## To Do
- Creation of `Polygon` object.
- An object definded by its vertex and edges.
- Transformation to objects
- rotation, transition,...etc