diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2004-01-28 22:16:50 +0300 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2004-01-28 22:16:50 +0300 |
commit | bdc624452b29ea53741dfc2223eb478921d16cbc (patch) | |
tree | 845e200cfc8ce392c74acd8b359ac380deea555c /source/blender/python/api2_2x/doc/Material.py | |
parent | abe7425f3c0d84e7722b4ace1017aec9ad8bdf87 (diff) |
BPython:
-- fixing a last minute bug: scripts w/o guis that called the file selector were
not being checked for errors, which could cause crash dumps upon exiting.
-- docs: updates for Draw (fixed example) and Material (added tex related methods docs)
Scripts:
-- added some more scripts, all I could get in shape in time (at least they export / import back).
Only tested on linux.
Diffstat (limited to 'source/blender/python/api2_2x/doc/Material.py')
-rw-r--r-- | source/blender/python/api2_2x/doc/Material.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/doc/Material.py b/source/blender/python/api2_2x/doc/Material.py index ea85f841f09..85d336a0599 100644 --- a/source/blender/python/api2_2x/doc/Material.py +++ b/source/blender/python/api2_2x/doc/Material.py @@ -117,6 +117,8 @@ class Material: that range: if val < Min, then val = Min, if val > Max, then val = Max. """ + import Texture + def getName(): """ Get the name of this Material object. @@ -471,3 +473,30 @@ class Material: @type nrings: int @param nrings: The new value in [0, 24]. """ + + def setTexture(index, texture, texco, mapto): + """ + Assign a Blender Texture object to slot number 'number'. + @type index: int + @param index: material's texture index in [0, 7]. + @type texture: Blender Texture + @param texture: a Blender Texture object. + @type texco: int + @param texco: optional or'ed bitflag -- defaults to TexCo.ORCO. See TexCo var in L{Texture}. + @type mapto: int + @param mapto: optional or'ed bitflag -- defaults to MapTo.COL. See MapTo var in L{Texture}. + """ + + def clearTexture(index): + """ + Clear the ith (given by 'index') texture channel of this material. + @type index: int + @param index: material's texture channel index in [0, 7]. + """ + + def getTextures (): + """ + Get this Material's Texture list. + @rtype: list + @return: a list of Blender Textures. None is returned for each empty texture slot. + """ |