A GitHub template repository for creating Blender addons with automated release packaging.
Click the "Use this template" button on GitHub to create a new repository based on this template.
Rename the folder from addons/BlenderTemplate
to addons/<<PLUGIN_NAME>>
:
mv addons/BlenderTemplate addons/YourPluginName
Replace YourPluginName
with your actual plugin name (e.g., MyAwesomeAddon
).
Edit .github/workflows/release.yml
and change the PLUGIN_NAME
environment variable to match your plugin folder name:
env:
PLUGIN_NAME: YourPluginName # Change this to match your addon folder name
Important: The PLUGIN_NAME
must exactly match the folder name in the addons/
directory.
Edit addons/<<PLUGIN_NAME>>/__init__.py
and update the bl_info
dictionary with your addon's information:
bl_info = {
"name": "Your Addon Name",
"author": "Your Name",
"version": (1, 0, 0),
"blender": (2, 80, 0),
"location": "View3D > Sidebar > Your Tab",
"description": "Description of your addon",
"category": "Object",
}
To develop your addon without manually copying files to Blender's addon directory, you can add a script path that points directly to your workspace:
- Open Blender
- Go to Edit > Preferences (or Blender > Preferences on macOS)
- Navigate to File Paths
- Scroll down to the Script Directories section
- Click the + button to add a new path
- Browse to and select your repository's root directory (e.g.,
/Users/yourname/Developer/BlenderTemplate
) - Click OK to save
Now Blender will scan the addons/
subfolder in your repository and make your addon available.
After adding the script path:
- Go to Edit > Preferences > Add-ons
- Search for your addon name
- Enable it by checking the checkbox
- Click Save Preferences to enable it on startup
When developing:
- Make changes to your addon code
- In Blender, go to Edit > Preferences > Add-ons
- Find your addon and click the Refresh button (or press F8 to reload addons)
- Alternatively, restart Blender to reload all scripts
Tip: For faster iteration, you can reload your addon using Blender's built-in script reloading or by toggling the addon off and on in the preferences.
- Commit and push your changes to GitHub
- Create a new tag with semantic versioning:
git tag v1.0.0 git push origin v1.0.0
- Go to your GitHub repository and create a new release from the tag
- The GitHub Actions workflow will automatically:
- Bundle your addon into a zip file
- Attach it to the release as
YourPluginName-1.0.0.zip
Users can install your addon by:
- Downloading the
.zip
file from the GitHub release - Opening Blender
- Going to Edit > Preferences > Add-ons
- Clicking Install and selecting the downloaded
.zip
file - Enabling the addon from the list
.
├── .github/
│ └── workflows/
│ └── release.yml # Automated release workflow
├── addons/
│ └── <<PLUGIN_NAME>>/ # Your addon folder (rename this!)
│ └── __init__.py # Addon entry point and metadata
└── README.md