I am making a very simple script that creates layers in Rhino. The idea is to use this instead of a standard Rhino template file, I would like to be able to just click a button in Grasshopper and the layers are created, colors, materials, lineweights, etc. are applied.
The problem is that I can’t find a way to automatically import the Rhino materials from files. I would like it to automatically import everything from a specified folder. I have looked around but I can’t seem to find anything that does exactly this.
This is how far I have gotten with the material import part:
Any help would be much appreciated!