Book Image

Blender 2.49 Scripting

By : Michel J. Anders
Book Image

Blender 2.49 Scripting

By: Michel J. Anders

Overview of this book

<p>Blender 3D is a popular, open source modeling package that can produce photo-realistic 3D images and animations. Automating tasks and extending the functionality of an extensive application like Blender will streamline your workflow and make the impossible possible. However, implementing scripts may be daunting.<br /><br />This book takes a practical step-by-step approach to implementing Python scripts that cover almost all areas of Blender. It clearly outlines each problem and focuses on straightforward, easy-to-understand code, highlighting the common pitfalls and Blender idiosyncrasies. It guides you from the installation process and the creation of a simple object to elaborate, fully rigged models with vertex groups and materials all the way to extending Blender's built-in editor. It also teaches how to implement a simple web server inside Blender to serve rendered images. This book will take you from a clear problem description to a fully functional program. The focus is on finding your way in Blender's vast array of possibilities and getting things done without losing too much time on programming details. Each script is carefully explained to provide insight that can be reused in other projects.</p>
Table of Contents (18 chapters)
Blender 2.49 Scripting
Credits
About the Author
About the Reviewer
Preface
Future Developments
Index

Python programming


This section lists some general Python-related resources. Blender scripting resources are listed in the next section.

  • www.python.org: It's the main site and very well organized, nevertheless some main sections deserve to be mentioned separately here.

  • www.python.org/download/: Download your full Python distribution here if you do not already have it installed or if the installed version doesn't match Blender's built-in version exactly.

For newcomers and seasoned programmers alike, the following pages offer some useful tutorials on Python in general and some 'how-tos' on specific subjects. All the articles on these pages have a fairly low learning curve:

  • docs.python.org/tutorial: It is especially worth reading for people experienced in other programming languages who want to learn Python. It covers most Python-related issues and should be sufficient for most people to get started with Python.

  • docs.python.org/howto: Detailed information on subjects such as regular expressions, Internet programming, and Python style.

More extensive information on the Python programming language and its bundled modules is available as well. These pages are a credit to their authors and maintainers because although exhaustive in their coverage and depth, they are still very readable.

  • docs.python.org/reference/: It is the main reference on all language structures such as statements, data types, and exceptions.

  • docs.python.org/library/: The ultimate reference for all bundled modules, built-in functions, and objects. Before you even think of programming something yourself, you should check this page to see if a module is already provided that covers your needs.

  • pypi.python.org/pypi: If the bundled modules do not provide what you need, chances are some third-party encountered the same problem and wrote a package to deal with the issue. If so, you'll probably find it on Python's Package Index.

  • code.activestate.com/recipes/langs/python/: Sometimes, you just need a code snippet, code example, or an algorithm to get you started. You might find it here.