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

Exploring built-in modules, the help() function

The interactive Python console is a good platform to explore built-in modules as well. Because Python comes equipped with two very useful functions, help() and dir(), you have instant access to a lot of information contained in Blender's (and Python's) modules as a lot of documentation is provided as part of the code.

For people not familiar with these functions, here are two short examples, both run from the interactive Python console. To get information on a specific object or function, type:

help(Blender.Lamp.Get)

The information will be printed in the same console:

Help on built-in function Get in module Blender.Lamp: Lamp.Get (name = None): Return the Lamp Data with the given name, None if not ...

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