bpy
bpy is Blender's Python API module that exposes Blender's data, operators, and UI for scripting and automation. It is the primary interface for extending Blender with Python, enabling users to create tools, automate repetitive tasks, and build add-ons. Scripts typically run in Blender's embedded Python interpreter and can interact with most Blender features, including scenes, objects, materials, animation, rendering, and user interface elements.
The API is organized into several submodules: bpy.data provides access to data blocks such as objects, meshes,
Scripts can be run from the Blender Text Editor, loaded from external files, or packaged as add-ons.
Common uses include automating repetitive editing, batch exporting, procedural content generation, rigging and animation tools, scene
Version compatibility is important: Blender's Python API evolves between releases, so scripts target a specific Blender