PacktLib: Blender 2.49 Scripting

Blender 2.49 Scripting

Credits

About the Author

About the Reviewer

Preface

Extending Blender with Python

The Blender API

Exploring built-in modules, the help() function

Getting familiar with the built-in editor

First steps: Hello world

Don't get confused, stay objective

Adding different types of object from a script

Summary

Creating and Editing Objects

Creepy crawlies—a GUI to configure objects

Transforming mesh topology

Dazzle your boss—bar charts in Blender style

Weird faces—selecting and editing faces in meshes

Selecting warped (non-planar) quads

Selecting ultra sharp faces

Selecting vertices with many edges

Selecting poles

Determining the volume of a mesh

Determining the centre of mass of a mesh

Growing sunflowers—parenting and grouping objects

Summary

Vertex Groups and Materials

Vertex groups

Modifiers

Bones

Materials

Summary

Pydrivers and Constraints

Getting to grips with animated properties

Difference between drivers and constraints

Programming with constraints

Programming with IPOs

PyDrivers

PyConstraints

Setting the time—one to rule them all

Internal combustion—correlating complex changes

Adding simple constraints

Defining complex constraints

Summary

Acting on Frame Changes

Animating the visibility of objects

Countdown—animating a timer with script links

I'll keep an eye on you

Revisiting mesh—making an impression

Summary

Shape Keys, IPOs, and Poses

A touchy subject—defining an IPO from scratch

A lot to swallow—defining poses

Get down with the beat—syncing shape keys to sound

Summary

Creating Custom Shaders and Textures with Pynodes

The basics

Regular tilings

Raindrops—animated Pynodes

Wuthering heights—a slope-dependent material

Soap bubbles—a view-dependent shader

Summary

Rendering and Image Manipulation

A different view—combining multiple camera angles

Now, strip—creating a film strip from an animation

Rendering billboards

Generating CAPTCHA challenges

Summary

Expanding your Toolset

To the Web and beyond—publish a finished render with FTP

Spring cleaning—archive unused images

Extending the editor—searching with regular expressions

Extending the editor—interacting with Subversion

The need for speed—using Psyco

Summary

Links and Resources

Links and Resources

Links and Resources

Links and Resources

Links and Resources

Links and Resources

Common Pitfalls

Common Pitfalls

Common Pitfalls

Common Pitfalls

Future Developments

Future Developments

Future Developments

Index