O'Reilly logo

Blender 2.49 Scripting by Michel J. Anders

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. Acting on Frame Changes

Besides the many places we have encountered where Python can be used in Blender, we will now look at scripts that may be used to act on certain events. These scripts come in two flavors—script links and space handlers.

Script links are scripts that may be associated with Blender objects (Meshes, Cameras, and so on, but also Scenes and World objects) and that can be set up to run automatically on the following occasions:

  • Just before rendering a frame
  • Just after rendering a frame
  • When a frame is changed
  • When an object is updated
  • When the object data is updated

Scene objects may have script links associated with them that may be invoked on two additional occasions:

  • On loading a .blend file
  • On saving a .blend file ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required