material creation script.


Forgive my lazyness (actually lack of time would be better said) for not searching all of the scriptspot scripts and posts for what I am about to ask.

I was wondering... say I get lots of RGB values in an excel sheet (in gamma 2,2)from a client who wants to visualise the colors in interior scenes.

Can it be done with a script in such a way that max generates a material library and puts the corrected gamma 2.2 color values from the table in the diffuse slots for the materials?

Any ideas or pointers how to go about this (and perhaps even expanding on the idea and including more values in the import table for properties such as reflection, glossiness etc?

thanks a lot to any helpers