diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2004-06-24 13:43:13 +0400 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2004-06-24 13:43:13 +0400 |
commit | 61efb63b0c7e4bdb62d2d4007205db34ed627623 (patch) | |
tree | a1ba4ec29dbd028b9bd930c81d67284affcab3b9 /source/blender/python/api2_2x/doc/Material.py | |
parent | 5b57d007a4f123a23f704a8d4aff431588e439b7 (diff) |
BPython:
- Added function Blender.Save(filename) to save .blend files.
- Added scriptlink-related methods (get, clear, add) to Scene and Materials. Will still add method remove and add these methods to World, Object, Camera and Lamp.
- Updates and small fixes in docs.
Diffstat (limited to 'source/blender/python/api2_2x/doc/Material.py')
-rw-r--r-- | source/blender/python/api2_2x/doc/Material.py | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/doc/Material.py b/source/blender/python/api2_2x/doc/Material.py index 9212936926b..5556eb25cd7 100644 --- a/source/blender/python/api2_2x/doc/Material.py +++ b/source/blender/python/api2_2x/doc/Material.py @@ -3,6 +3,8 @@ """ The Blender.Material submodule. +B{New}: scriptLink methods: L{Material.getScriptLinks}, ... + Material ======== @@ -496,5 +498,32 @@ class Material: """ Get this Material's Texture list. @rtype: list of MTex - @return: a list of Blender MTex objects. None is returned for each empty texture slot. + @return: a list of Blender MTex objects. None is returned for each empty + texture slot. + """ + + def getScriptLinks (event): + """ + Get a list with this Material's script links of type 'event'. + @type event: string + @param event: "FrameChanged" or "Redraw". + @rtype: list + @return: a list with Blender L{Text} names (the script links of the given + 'event' type) or None if there are no script links at all. + """ + + def clearScriptLinks (): + """ + Delete all this Material's script links. + @rtype: bool + @return: 0 if some internal problem occurred or 1 if successful. + """ + + def addScriptLink (text, event): + """ + Add a new script link to this Material. + @type text: string + @param text: the name of an existing Blender L{Text}. + @type event: string + @param event: "FrameChanged" or "Redraw". """ |