Skip to content

bpy-lattice

Extensions to Blender to draw accelerator lattices

Installation into Blender

Blender ships with its own Python. On macOS, this is in a place like:

/Applications/Blender.app/Contents/Resources/4.3/python/bin/python3.11

This package includes a general installation script for macOS:

bash scripts/install_blender_package.sh
Usage: scripts/install_blender_package.sh <blender_version> [--editable]

This script installs bpy-lattice into Blender's Python environment.

Arguments:
  <blender_version>          The version of Blender to target (e.g., 4.2).
  [--editable]               Optional flag to install the package in editable mode.

Base Path: /Users/<username>/Library/Application Support/Blender
Modules Path: /Users/<username>/Library/Application Support/Blender/<version>/scripts/modules

Examples:
  scripts/install_blender_package.sh 4.2
  scripts/install_blender_package.sh 4.2 --editable

This script also lists available Blender versions if arguments are missing or incorrect.
Available Blender versions:
4.3

Note that older installation methods no longer work.

Usage

Open Blender, and choose the scripting tab.

Paste the contents of scripts/make_lattice.py in the editor. Edit to point to a valid .layout_table file, and run the script.