I have created a complicated Cycles material with the node editor. I am currently building a python script to recreate this material. Is there any way to "export" python to create a material I have already made in the node editor?
I have written a tool for that, but it has only features I needed for my nodetrees. The code is ugly, but might give some pointers for you in case you'd want to write something like that yourself. Maybe there are other - more complete - tools like that I'm not aware of.