Page MenuHome

material_index inaccessible via python for Text objects
Closed, ResolvedPublic

Description

Text objects are Curves, and curves usually store the material_index in .spline:

http://www.blender.org/documentation/blender_python_api_2_69_10/bpy.types.Spline.html?highlight=material_index#bpy.types.Spline

But there are no splines for Text objects, thus it's impossible to access/edit the used materials with python (or am I overlooking something?).

I stumbled upon it, 'cause I'm trying to fix some problems in the trunk addon Material Utils (Material Slot cleanup, which needs to test which material indices are actually used by an object).

Event Timeline

codemanx created this task.Feb 23 2014, 2:36 AM
codemanx raised the priority of this task from to 90.
codemanx updated the task description. (Show Details)
codemanx edited a custom field.
codemanx added a subscriber: codemanx.
Campbell Barton (campbellbarton) changed the task status from Unknown Status to Resolved.Feb 23 2014, 8:39 AM

Closed by commit rBcb1b6b549e8c.