On 04/05/2015 at 19:40, xxxxxxxx wrote:
Assuming that you mean the basic color of the material, you need to get the Color channel and set its value where r, g, b are float values between 0.0 and 1.0:
BaseChannel* bchan = mat->GetChannel(CHANNEL_COLOR);
if (bchan)
mat->SetParameter(DescID(MATERIAL_COLOR_COLOR), GeData(Vector(r, g, b)), DESCFLAGS_SET_DONTCHECKMINMAX);
This is probably a bit long in the tooth (from an older plugin) so be aware that constant ids may be different.