BPY plus

BPY plus – a set of modules to extend the Blender Python API.

BPY plus is an Open Source project based on Blender API and extending it with several new features and making it easier to use some of the “bpy” functions.

Your Patreon support helps the project developing and extending with new modules and classes.

You can use BPY plus in your add-ons and scripts in any way for free.

BPY plus modules
  • about – a module with information about BPY plus itself
  • bounding – a module for working with bounding objects
  • mesh – a module to simplify work with mesh objects.
  • names – a module to simplify work with object names.
  • render – a module to work with rendering
  • transform – a module for working with 3D objects transformations
  • objects – a module to simplify work with 3D objects.
Usage example

The “bpy_plus” package must be placed in the same directory as the project in which it will be used. Copy “bpy_plus” to your project directory. Now you can import “bpy_plus” modules as usual:

and then use the required functionality.

For example, let’s find the bounding sphere around selected objects.

Import the “Bounding” class from the “bounding” module:

Now we can calculate the bounding sphere around the selected objects using the “sphere” method:

This method returns the location and radius of the bounding sphere. Let’s add an empty with the type of sphere to the scene and set the resulting location and radius to it, to display the bounding sphere we found:

The result:

Final code:

Current version


For Blender

2.91, 2.92, 2.93, 3.0

Version history

version history on GitHub

0 0 votes
Article Rating
Notify of
0 Comment
Inline Feedbacks
View all comments