Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Python Scripting in Blender
  • Table Of Contents Toc
  • Feedback & Rating feedback
Python Scripting in Blender

Python Scripting in Blender

By : Paolo Acampora
4.9 (14)
close
close
Python Scripting in Blender

Python Scripting in Blender

4.9 (14)
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)
close
close
1
Part 1: Introduction to Python
7
Part 2: Interactive Tools and Animation
13
Part 3: Delivering Output

Exploring Object Transformations

The ability to change an object’s location, rotation, and dimension in a space is a tenet of any animation software.

Artists are used to changing the values of transform channels to carry out these operations. More technical users are aware of the geometric implications of such actions.

In this chapter, we will learn how Object Transformations work and how to implement them in our script. We will also learn how to add object constraints programmatically and how Blender can carry out the more difficult operations for us.

Finally, we will implement a new command that affects the transformation of more objects at once and accepts user input.

This chapter will cover the following key topics:

  • Transforming objects, using coordinate notations, and avoiding pitfalls
  • Applying object constraints and hierarchies
  • Using matrix representation
  • Adding interactive operators to our add-ons
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Python Scripting in Blender
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon