How to get color RGB and not a name like "black"

Hi Qtov,

the color is returned as a System.Drawing.Color object
https://msdn.microsoft.com/en-us/library/system.drawing.color(v=vs.110).aspx

If the color is a predifined named color it will indeed print the name rather than the A R G B values.
to retrieve the RGB values you can get it’s RGB values individually like so:

mcolor = rs.MaterialColor(materialindex)
r = mcolor.R
g = mcolor.G
b = mcolor.B
print r,g,b

Does this help?
-Willem

1 Like