Blender node material setup to OSL?

Is there a way to convert a network of shader nodes into straight up OSL code?

There is not a convert nodes to OSL option

But if you dig the source code, all nodes have an OSL representation, and you can use this info to build your mega shader. :wink: