© Chris Conlan 2017

Chris Conlan, The Blender Python API, 10.1007/978-1-4842-2802-9_2

2. The bpy Module

Chris Conlan

(1)Bethesda, Maryland, USA

This chapter introduces and details major components of the bpy module. In doing so, we explain many important behaviors of Blender. We cover selection and activation, creation and deletion, scene management, and code abstraction.

The official documentation for the Blender Python API can be found by selecting a version of Blender at http://www.blender.org/api/ . We are using Blender 2.78c in this text, so our documentation can be found at http://www.blender.org/api/blender_python_api_2_78c_release/ .

Module Overview

We begin by giving some background on each submodule of bpy.

bpy.ops

As implied, this submodule ...

Get The Blender Python API: Precision 3D Modeling and Add-on Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.