b0o / blender-addon-template

Blender Add-on Starter Template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blender Add-on Template

This is a template for creating Blender add-ons. It uses Hatch to manage dependencies and virtual environments.

Instructions

  1. Change names and info in the following files (don't forget the copyright hearders):
  • pyproject.toml (including the path in the [tool.hatch.version] section)
  • my_addon/__init__.py
  • my_addon/auto_load.py (copyright header only)
  • my_addon/panel_mypanel.py
  1. Rename the my_addon directory to the name of your add-on. It should match the name in pyproject.toml

  2. Install hatch and run hatch shell to create and activate the virtual environment:

pip install hatch
hatch shell
  1. Open your editor and start developing your add-on. (Preferably, start your editor from inside of the virtualenv shell)
  1. Build the add-on by running the following command:
./scripts/build.sh

This will create a zip file in the dist directory.

License

Blender Add-on Template © 2024 Maddison Hellstrom

GNU General Public License v2.0 or later

About

Blender Add-on Starter Template

License:GNU General Public License v2.0


Languages

Language:Python 94.2%Language:Shell 5.8%