Skip to main content

Tools for creating particle accelerator models in Blender

Project description

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.2/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> <path_to_local_package> [--editable]

This script installs a local Python package into Blender's Python environment.

Arguments:
  <blender_version>          The version of Blender to target (e.g., 4.2).
  <path_to_local_package>    The path to the local Python package to install.
  [--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 /path/to/your/package
  scripts/install_blender_package.sh 4.2 /path/to/your/package --editable

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

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bpy_lattice-0.3.0.tar.gz (26.3 kB view details)

Uploaded Source

File details

Details for the file bpy_lattice-0.3.0.tar.gz.

File metadata

  • Download URL: bpy_lattice-0.3.0.tar.gz
  • Upload date:
  • Size: 26.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for bpy_lattice-0.3.0.tar.gz
Algorithm Hash digest
SHA256 4da10576e9f01db5deab2963ec827addb05112840b218aef3ef5771827bd7423
MD5 3e1cce207dd483b389cf0f4cd7a6b352
BLAKE2b-256 7ffc9b04e7346fb78796801bea384057eb6b273fb79c13fa61a7ef92b467b9ef

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page