I am not sure if this is even possible. I need to programmatically generate materials from lets say a metal glossy type to material of type diffuse or emission.
I need to create maybe 10 materials as it transitions from a start material through to the end material. Would this be possible just given the start and end types?