Blender 3D: Noob to Pro/Python Scripting

From Wikibooks, open books for an open world
Jump to navigation Jump to search

One of Blender's powerful features is its Python API. This allows you to interface with Blender through the Python programming language. The Python interface allows you to control almost all aspects of Blender, for example you can write import or export scripts for meshes and materials of various formats or create procedurally generated textures. You can also create complete animations procedurally and write scripts to modify existing scenes in any way you can think of. On top of all, you can easily create a user interface for your script, transforming it into a generally usable tool.

The relevant section of the Blender User’s Manual is here.

Download Python Scripts from the Blender site here.

This forum on blenderartists.org discusses Python scripting.

Chapter contents[edit | edit source]

  1. Introduction
  2. Anatomy Of An Addon
  3. A User Interface For Your Addon
  4. Adding A Custom Property
  5. A Separately Installable Addon
  6. Object, Action, Settings
Note:

Scripting in the older 2.49 version of Blender is completely different, and is described here.