How to split a beveled surface to two parts to use different materials Recently I asked this question and got a very nice answer:

What is the easiest way to smooth the intersection of two planes?

However, now I would like to use a different material for each face. Could anybody help me on how to do this? Written in python script would be best.

Thanks,
Mojmir.
No script here but this is a possible node setup:


to get this: