All Projects → bcongdon → bpy_lambda

bcongdon / bpy_lambda

Licence: MIT license
🎥 A compiled binary of Blender-as-a-Python-Module (bpy) for use in AWS Lambda

Programming Languages

Dockerfile
14818 projects
python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to bpy lambda

MindMapper
Blender Python - Node-based multi-line text and image flowchart
Stars: ✭ 58 (-12.12%)
Mutual labels:  blender, blender-python
blender Shelves
Custom Header Buttons
Stars: ✭ 32 (-51.52%)
Mutual labels:  blender, blender-python
3dn-bip
A Python library for Blender addons. Blazingly fast preview loads in Blender. Images of arbitrary size. bpy.utils.previews drop-in replacement.
Stars: ✭ 41 (-37.88%)
Mutual labels:  blender, blender-python
MustardUI
Custom UI for Blender human models. It features automatic outfits switch, custom properties support, armature panel creation, and much more.
Stars: ✭ 122 (+84.85%)
Mutual labels:  blender, blender-python
Character-UI
Blender add-on for creating simple yet functional UIs for your characters.
Stars: ✭ 28 (-57.58%)
Mutual labels:  blender, blender-python
BlendShell
A Blender plugin for making hollow models suitable for 3D printing.
Stars: ✭ 33 (-50%)
Mutual labels:  blender, blender-python
interactive-physics-editor
Simplifies the process of positioning multiple objects in 3D space with collision handling
Stars: ✭ 20 (-69.7%)
Mutual labels:  blender, blender-python
neuro-bge
Node-based Blender game engine and logic editor addon for Blender
Stars: ✭ 27 (-59.09%)
Mutual labels:  blender, blender-python
Jaks Blender Scripts
Various Python Scripts for Blender
Stars: ✭ 26 (-60.61%)
Mutual labels:  blender, blender-python
gmic-blender
Official G'MIC plugin for Blender3D - pre-pre-alpha
Stars: ✭ 34 (-48.48%)
Mutual labels:  blender, blender-python
anton
anton is an open-source generative design framework built on Blender, the open-source 3D creation suite.
Stars: ✭ 82 (+24.24%)
Mutual labels:  blender, blender-python
Blender-Add-on-Manager
Blender Add-on Manager to install/uninstall/update from GitHub
Stars: ✭ 130 (+96.97%)
Mutual labels:  blender
ext-mikktspace
Copy of Morten S. Mikkelsen tangent space code
Stars: ✭ 43 (-34.85%)
Mutual labels:  blender
Blender-PyCharm
Example setup for blender addon development in pycharm
Stars: ✭ 48 (-27.27%)
Mutual labels:  blender
NodeSharer
Node Sharer is an add-on for Blender that lets you easily share procedural materials as text strings.
Stars: ✭ 48 (-27.27%)
Mutual labels:  blender
3D-Public-Transport-Simulator
The 3D Public Transport Simulator is a Unity-based simulation, which uses OpenStreetMap data in order to support the simulation of worldwide locations. The development was part of a Bachelor thesis.
Stars: ✭ 87 (+31.82%)
Mutual labels:  blender
cellblender
Create, Simulate, Visualize, and Analyze Realistic 3D Cell Models
Stars: ✭ 52 (-21.21%)
Mutual labels:  blender
voxel-builder
Voxel-based 3D modeling application
Stars: ✭ 31 (-53.03%)
Mutual labels:  blender
Blender Tools
🐵 Embark Addon for Blender
Stars: ✭ 250 (+278.79%)
Mutual labels:  blender
Blender Cli Rendering
Python scripts for rendering images using Blender 2.83 from command-line interface
Stars: ✭ 241 (+265.15%)
Mutual labels:  blender

bpy_lambda

🎥 A compiled binary of Blender-as-a-Python-Module (bpy) for use in AWS Lambda

PyPI version

Installation

pip install bpy_lambda

Works great with Zappa!

Usage

bpy_lambda is a simple wrapper around the bpy. You can read more about bpy usage in the Blender Documentation.

from bpy_lambda import bpy

# bpy can be used normally!
bpy.ops.mesh.primitive_cube_add(location=(0, 0, 0))
cube = bpy.context.scene.objects.active
cube.scale = (1, 2, 3)
bpy.ops.export_scene.obj(filepath='my_model.obj')

bpy_lambda will only work in a Lambda environment (perhaps some linux distros as well, if you have a similar set of library versions to AWS Lambda).

For local development, it will be useful to install bpy normally with the instructions on the Blender website. (Unfortunately, this requires building from source).

With a local version of bpy installed, you can use this code to switch seamlessly between your local environment and Lambda:

try:
    import bpy
except ImportError:
    from bpy_lambda import bpy

Contribution / Building from Source

The Dockerfile is the easiest way to create a version of bpy that works on Lambda. Building this docker image will download the necessary libraries and compile a minimal version of Blender that works in a Lambda environment.

For easy installation / local setup, run ./build.sh. This will create a directory called bpy_lambda that contains all the necessary package files.

Running ./test.sh will spin up a test Lambda invocation (using the excellent lambci/docker-lambda). Any import or dependency errors should be caught by this test.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].