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.2.1.tar.gz
(23.1 kB
view details)
File details
Details for the file bpy_lattice-0.2.1.tar.gz.
File metadata
- Download URL: bpy_lattice-0.2.1.tar.gz
- Upload date:
- Size: 23.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c152ecb2cb78683f2965f04809ce3f4d75f3cf00aaa9605d3ed3d6ed08888a92
|
|
| MD5 |
469f31cdb8aaeae8049af96e05f47542
|
|
| BLAKE2b-256 |
4f5473fb5ca482e73bd8865593db4c322548d9d2d25ac1cb54bb6d034edc3316
|