Skip to content

Hideousmon/blender-layout-render

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blender-layout-render

A Blender modeling tool with a workflow similar to SPLayout.

Dependencies

  • Blender 4.1
  • bpy
  • shapely
  • mapbox-earcut

Installation

Clone this repository first:

git clone https://github.com/Hideousmon/blender-layout-render.git
cd blender-layout-render

Install the package with Blender's Python:

path-to-blender-python setup.py install

Example:

S:/Blender/4.1/python/bin/python.exe setup.py install

Install Python Dependencies

bpy

bpy is included in Blender's Python environment, so you usually do not need to install it separately. Please make sure you run this project with the Python executable that comes with Blender.

path-to-blender-python -m pip install bpy==4.1.0

Example:

S:/Blender/4.1/python/bin/python.exe -m pip install bpy==4.1.0

shapely

Install shapely into Blender's Python environment:

path-to-blender-python -m pip install shapely

Example:

S:/Blender/4.1/python/bin/python.exe -m pip install shapely

mapbox-earcut

Install mapbox-earcut into Blender's Python environment:

path-to-blender-python -m pip install mapbox-earcut

Example:

S:/Blender/4.1/python/bin/python.exe -m pip install mapbox-earcut

Usage

After installation, run scripts with Blender's Python, for example:

S:/Blender/4.1/python/bin/python.exe waveguide_sim_scene.py

You can also set Blender's Python as the system/interpreter Python in PyCharm and run the scripts there.

Note: There may be issues when running this project directly in Blender's scripting window.

Examples

Examples can be found in the examples directory.

Simulation Scene of a Waveguide

waveguide_sim_scene.py

process

Layout Schematic of an Integrated Photonics Device

integration_layout_schematic.py

process

TODO

  1. Better color matching
  2. More materials
  3. ...

Pull requests and issues are welcome.

About

A Blender modeling tool with a similar modeling method to SPLayout.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages