material_index inaccessible via python for Text objects #38769

Closed
opened 2014-02-23 02:36:13 +01:00 by CodeManX · 6 comments
Member

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).

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).
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

Added subscriber: @CodeManX

Added subscriber: @CodeManX

This issue was referenced by blender/blender-addons-contrib@cb1b6b549e

This issue was referenced by blender/blender-addons-contrib@cb1b6b549e8cd8eb6cb40fa03818a913e1f45c00

This issue was referenced by blender/blender@cb1b6b549e

This issue was referenced by blender/blender@cb1b6b549e8cd8eb6cb40fa03818a913e1f45c00

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Closed by commit blender/blender@cb1b6b549e.

Closed by commit blender/blender@cb1b6b549e.
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#38769
No description provided.