I am trying to create a folded paper like object using Blender. This is something I've created. Now, I want to color edges of the paper and the creases of the fold. Like if the crease is downwards I want a green color line along that and if it is upwards the color should be red. Moreover, I want the edges to be colored as black line. Can anyone suggest any ideas about achieving this? Actually I am creating thousands of random pages like this using a python script. So it's not possible to manually label each of those. I need to find out an automatic process using a script. For this one the page should have this kind of markings.
Any ideas for this would be great. Thanks in advance!