Book Image

Python Scripting in Blender

By : Paolo Acampora
5 (1)
Book Image

Python Scripting in Blender

5 (1)
By: Paolo Acampora

Overview of this book

Blender, a powerful open source 3D software, can be extended and powered up using the Python programming language. This book teaches you how to automate laborious operations using scripts, and expand the set of available commands, graphic interfaces, tools, and event responses, which will enable you to add custom features to meet your needs and bring your creative ideas to life. The book begins by covering essential Python concepts and showing you how to create a basic add-on. You’ll then gain a solid understanding of the entities that affect the look of Blender’s objects such as modifiers, constraints, and materials. As you advance, you’ll get to grips with the animation system in Blender and learn how to set up its behavior using Python. The examples, tools, patterns, and best practices present throughout the book will familiarize you with the Python API and build your knowledge base, along with enabling you to produce valuable code that empowers the users and is ready for publishing or production. By the end of this book, you’ll be able to successfully design add-ons that integrate seamlessly with the software and its ecosystem.
Table of Contents (19 chapters)
1
Part 1: Introduction to Python
7
Part 2: Interactive Tools and Animation
13
Part 3: Delivering Output

Index

As this ebook edition doesn't have fixed pagination, the page numbers below are hyperlinked for reference only, based on the printed edition of this book.

Symbols

3D variables

creating 29, 30

7-Zip 159

used, for creating .zip file 159

.zip add-ons

installing 161

.zip file

creating, with 7-Zip 159

creating, with Finder on Mac 161

creating, with Gnome 161

creating, with Windows File Manager 160

A

Action to Range add-on

enabling 174, 175

environment, setting 168

menu function, writing 171, 172

operator methods, writing 169

operators context, fixing 177, 178

parameters, modifying 175-177

Python class, finding 173

registering 172

register/unregister functions, writing 174

running 174, 175

writing 168

Action to Range information

writing 168, 169

Action to Range operator

writing 169

active object 42

modifying 43, 44

active scene 40, 41

add-on preferences

creating...