adding ob.activeMaterial - allows you to get/set the active material for an object.

This commit is contained in:
2006-12-22 04:46:37 +00:00
parent 60ebff78ab
commit 60a2977dcf
2 changed files with 21 additions and 0 deletions

View File

@@ -449,6 +449,13 @@ class Object:
@ivar passIndex: Index # for the IndexOB render pass.
Value is clamped to [0,1000].
@type passIndex: int
@ivar activeMaterial: The active material index for this object.
The active index is used to select the material to edit in the material buttons,
new data created will also use the active material.
Value is clamped to [1,len(ob.materials)]. - [0,0] when there is no materials applied to the object.
@type activeMaterial: int
@ivar drawSize: The size to display the Empty.
Value clamped to [0.01,10.0].
@type drawSize: float