Page MenuHome

mathutils.Color do not support alpha value in latest 2.79.1
Closed, ArchivedPublic

Description

import mathutils
mathutils.Color([1,1,1,1])

Will give error, because it is expecting 3 values. But I guess now blender supports vertex, alpha so mathutils.Color should take 4 args?

Event Timeline

Sergey Sharybin (sergey) changed the task status from Unknown Status to Unknown Status.Dec 11 2017, 3:27 PM
Sergey Sharybin (sergey) claimed this task.

Thanks for the report, but it's more a feature request.

Vertex color is not the only place which works with colors, some places will still only work with RGB (i.e. Diffuse color of closure).

Supporting 4 component color would be nice, but is not considered a bug.

However, adding on radars of @Campbell Barton (campbellbarton) and @Bastien Montagne (mont29).