Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Hughes <khughes@pacific.edu>2006-12-26 00:15:53 +0300
committerKen Hughes <khughes@pacific.edu>2006-12-26 00:15:53 +0300
commit576c5b85b68f11b270736e692e120b011bedabcd (patch)
tree717c7250868db14a73611f012521a1303998c50e /source/blender/python/api2_2x/doc/Curve.py
parent11cd11d4c938afefb0ec435f14fd02e0213f6b1e (diff)
Python API
---------- Add .materials attribute to BPy Curve API. Also clean up Mesh.materials documentation.
Diffstat (limited to 'source/blender/python/api2_2x/doc/Curve.py')
-rw-r--r--source/blender/python/api2_2x/doc/Curve.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/doc/Curve.py b/source/blender/python/api2_2x/doc/Curve.py
index 64dc582ac5a..00ef78ec0eb 100644
--- a/source/blender/python/api2_2x/doc/Curve.py
+++ b/source/blender/python/api2_2x/doc/Curve.py
@@ -130,6 +130,15 @@ class Curve:
@type bevob: Blender L{Object<Object.Object>} or None
@ivar key: The Key object associated with this Curve, if any.
@type key: Blender L{Key<Key.Key>}
+ @ivar materials: The curves's materials. Each curve can reference up to
+ 16 materials. Empty slots in the curve's list are represented by B{None}.
+ B{Note}: L{Object.colbits<Object.Object.colbits>} needs to be set correctly
+ for each object in order for these materials to be used instead of
+ the object's materials.
+ B{Note}: The list that's returned is I{not} linked to the original curve.
+ curve.materials.append(material) won't do anything.
+ Use curve.materials += [material] instead.
+ @type materials: list of L{Material}s
"""
def getName():