Skip to content

Example of a Blender add-on that loads external dependencies locally

License

Notifications You must be signed in to change notification settings

CGCookie/install_deps_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install Dependencies Example Blender Add-on

This base code serves as an example mechanism for loading external Python dependencies, should they happen to be necessary for your add-on to function. For the most part, this code should be pretty easy to bolt on to an existing add-on.

Features:

  • Relatively easy to incorporate to an existing add-on
  • Multi-platform (tested in Linux, OSX, and Windows)
  • Modules are installed to the add-on's path, not Blender's Python path
  • Uses Blender's Python/PIP to install modules
  • Makes use of requirements.txt workflow common in Python development
  • Requires user action to install modules (not automatic)

Known Issues:

  • Although modules are installed local to the add-on, they are not sandboxed. Modules are accessible across all of Blender. This means that there is a chance that modules may collide if other add-ons use this mechanism to install their own modules. Unfortunately, this is an issue within Blender without an easy solution overall.

About

Example of a Blender add-on that loads external dependencies locally

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages