Home | Trees | Index | Help |
|
---|
Module Blender |
|
The main Blender module.
New:Run
, UpdateMenus
, new options to Get
, ShowHelp
, SpaceHandlers
dictionary.
Function Summary | |
---|---|
Retrieve settings from Blender. | |
Load a Blender .blend file or any of the other supported file formats. | |
Exit from Blender immediately. | |
Redraw all 3D windows. | |
Execute the given script. | |
Save a Blender .blend file with the current program data or export to one of the builtin file formats. | |
Update settings in Blender. | |
Show help for the given script. | |
Update the menus that list registered scripts. |
Variable Summary | |
---|---|
bool | bylink : True if the current script is being executed as a script link. |
string or int | event : this has three possible uses: script link type or events callback
ascii value: |
Blender Object or None; integer (space handlers) | link : for normal script links, 'link' points to the linked Object (can be a
scene, object (mesh, camera, lamp), material or world). |
string | mode : Blender's current mode: |
constant dictionary | SpaceHandlers : dictionary with space handler types. |
Function Details |
---|
Get(request)Retrieve settings from Blender.
|
Load(filename=None)Load a Blender .blend file or any of the other supported file formats. Supported formats:
|
Quit()Exit from Blender immediately.
|
Redraw()Redraw all 3D windows. |
Run(script)Execute the given script.
|
Save(filename, overwrite=0)Save a Blender .blend file with the current program data or export to one of the builtin file formats. Supported formats:
|
Set(request, data)Update settings in Blender.
|
ShowHelp(script)Show help for the given script. This is a time-saver ("code-saver") for scripts that need to feature a 'help' button in their GUI's or a 'help' submenu option. With proper documentation strings, calling this function is enough to present a screen with help information plus link and email buttons.
|
UpdateMenus()Update the menus that list registered scripts. This will scan the default and user defined (if available) folder(s) for scripts that have registration data and will make them accessible via menus.
|
Variable Details |
---|
bylinkTrue if the current script is being executed as a script link.
|
eventthis has three possible uses: script link type or events callback ascii value:
|
linkfor normal script links, 'link' points to the linked Object (can be a scene, object (mesh, camera, lamp), material or world). For space handler script links, 'link' is an integer from the Blender.SpaceHandlers dictionary. For script not
running as script links, 'link' is None.
|
SpaceHandlersdictionary with space handler types.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Dec 22 22:38:13 2005 | http://epydoc.sf.net |