Home | Trees | Index | Help |
|
---|
Module Blender |
|
The main Blender module.
New:Run
, UpdateMenus
, new options to Get
, ShowHelp
, SpaceHandlers
dictionary. UnpackModes
dictionary.
Function Summary | |
---|---|
Returns the number of packed files. | |
Retrieve settings from Blender. | |
Load a Blender .blend file or any of the other supported file formats. | |
Pack all files. | |
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. | |
Unpack all files with specified mode. | |
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. |
constant dictionary | UnpackModes : dictionary with available unpack modes. |
Function Details |
---|
Blender_CountPackedFiles()Returns the number of packed files. |
Get(request)Retrieve settings from Blender.
|
Load(filename=None)Load a Blender .blend file or any of the other supported file formats. Supported formats:
|
PackAll()Pack all files. |
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 GUIs 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.
|
UnpackAll(mode)Unpack all files with specified mode.
|
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 Sun Feb 11 13:30:19 2007 | http://epydoc.sf.net |