Blender 3D: Noob to Pro/Python Scripting

From Wikibooks, open books for an open world
< Blender 3D: Noob to Pro
Jump to: navigation, 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.

here is a remix and update to the great noob tutorial : Tutorial (Blender 2.4.9)

[edit] Chapter contents

  1. Introduction
  2. Procedural object creation
  3. External scripts
  4. Creating a GUI for your script
  5. Export scripts
  6. Import scripts
  7. Scripts for modifying meshes 00%.svg
Note:

Scripting in the upcoming version of Blender (currently in development as the version 2.5x series) is completely different, and is described here.

Personal tools
Namespaces
Variants
Actions
Navigation
Community
Toolbox
Sister projects
Print/export