Blender Script
Programming Add-Ons for Blender 2.5
Writing Python Scripts with Eclipse IDE version 1.01
Programming Add-Ons for Blender 2.5 - version 1.01 Copyright Witold Jaworski, 2011. wjaworski@airplanes3d.net http://www.airplanes3d.net
Reviewed by Jarek Karpiel I would also to thank Dawid Ośródka and PKHG (from the blenderartists.org forum) for their comments.
This book isavailable under Creative Commons license Attribution-NonCommercial-NoDerivs 3.0 Unported.
ISBN: 978-83-931754-2-0
Chapter 1 Software Installation
3
Table of Contents
Table of Contents.................................................................................................................................................. 3 Introduction........................................................................................................................................................... 4 Conventions.......................................................................................................................................................... 5 Preparations............................................................................................................................................................ 6 Chapter 1. Software Installation ...................................................................................................................... 7 1.1 1.2 Python ..................................................................................................................................................... 8 Eclipse...................................................................................................................................................10
1.3 PyDev ....................................................................................................................................................13 Chapter 2. Introduction to Eclipse.................................................................................................................17 2.1 2.2 2.3 Creating a new project ..........................................................................................................................18 Writing the simplest script .....................................................................................................................24 Debugging.............................................................................................................................................27
Creating the Blender Add-On ................................................................................................................................32 Chapter 3. Basic Python Script.....................................................................................................................33 3.1 3.2 3.3 3.4 3.5 The problem to solve .............................................................................................................................34 Adapting Eclipse to the Blender API .....................................................................................................39 Developing the core code......................................................................................................................48 Launching and debugging Blender scripts ............................................................................................58 Using Blender commands (operators) ..................................................................................................65
Chapter 4. Converting the Script into BlenderAdd-On .................................................................................74 4.1 Adaptation of the script structure...........................................................................................................75 4.2 4.3 Adding the operator command to a Blender menu ...............................................................................84 Implementation of dynamic...
Regístrate para leer el documento completo.