32,39 €
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.
Das E-Book können Sie in Legimi-Apps oder einer beliebigen App lesen, die das folgende Format unterstützen:
Seitenzahl: 367
Veröffentlichungsjahr: 2023
Extend the power of Blender using Python to create objects, animations, and effective add-ons
Paolo Acampora
BIRMINGHAM—MUMBAI
Copyright © 2023 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
Group Product Manager: Rohit Rajkumar
Publishing Product Manager: Kaustubh Manglurkar
Senior Editor: Keagan Carneiro
Senior Content Development Editor: Debolina Acharyya
Technical Editor: Simran Ali
Copy Editor: Safis Editing
Project Coordinator: Sonam Pandey
Proofreader: Safis Editing
Indexer: Sejal Dsilva
Production Designer: Vijay Kamble
Marketing Coordinators: Nivedita Pandey, Namita Velgekar, and Anamika Singh
First published: June 2023
Production reference: 1120523
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-80323-422-9
www.packtpub.com
To my daughters, Noè and Dedè, for all the games we play together, which are the best part of the whole thing.
– Paolo Acampora
Paolo Acampora is a software developer at Binary Alchemy and a veteran technical director for animation, visual effects, and prototyping. He is a long-time Blender user and advocates for the widespread adoption of open source software and code literacy.
He works with studios to kickstart their computer graphics pipelines and shares his tools with the Blender community.
I want to thank my life companion, Dona, for her support and for tolerating my snoring. My parents and the whole bunch of rascals who make my family such a fun lot. My friends, who still invite me to parties, and everyone else I met along the way: a little piece of each one of us lies hidden in these pages.
Dr. Edward Tate is an engineer who has used Blender for more than 15 years for both technical illustration and communication. He has extensively used Python for scientific work. He holds a bachelor of science in mechanical engineering (BSME) and a bachelor of science in electrical engineering (BSEE) from Kettering University, a master of science in electrical engineering (MSEE) from Stanford, and a doctor of philosophy (Ph.D.) from the University of Michigan. He is the author of more than 40 patents. He has worked on electric vehicles, scientific software, aerospace, and wireless power transfer.
In this part, we will familiarize you with Blender’s Python interface. This part will illustrate the fundamentals of scripting and provide an overall understanding of how to code tools for Blender.
This section comprises the following chapters:
Chapter 1, Python’s Integration with BlenderChapter 2, Python Entities and APIsChapter 3, Creating Your Add-OnsChapter 4, Exploring Object TransformationsChapter 5, Designing Graphical InterfacesBlender expands Python by making the modules of its Application Programming Interface (API) available inside the app.
These modules provide wrappers that translate Blender’s internal data into Python objects. Comprehensive documentation and an API reference are available online and can be reached from inside the application. Plus, there are some extra features to help programmers in