This weekend I wrote a little script to convert shading networks to a text-based file (JSON File) and then back again.

This script came about when testing the beta Mila shaders. These shaders are under active development and are being updated regularly – every time they are updated, the shading networks built using the older shaders will break and cause mental ray to crash. This script creates a simple way to “upgrade” shading networks by rebuilding them using the latest available shader.

The code is available on github for anyone to check out:

Here is a little demo of it in action:

No comments yet.

Leave a Reply