Easy one yet I can't get it>>>> Getting color from Material

if I have a geometry with a color I am exporting contents to a file and attempting to recreate the scene with the geometry.

the only missing piece of the puzzle is the color of the geometry. I can only get the material , how can I get the color of the geometry from the material (in order to export it to a file)

thx

other than userdata (which is the optimal way but just for curiosity)

mat.getParam(“Ambient”) for example

2 Likes

Actually I don’t think that redundantly storing colors in user data is optimal :slight_smile:

1 Like

Since when putting info in userdata that is already in the object optimal? O_o