Featured post

new redirect for blender.org bpy docs.

http://www.blender.org/api/blender_python_api_current/ As of 10/11 november 2015 we can now link to the current api docs and not be worr...

Showing posts with label append material. Show all posts
Showing posts with label append material. Show all posts

October 01, 2012

Scripting Cycles Shaders - return of the time wasters.

I wanted a way to carry a shader inside a pyfile, to keep this self contained. This will be a pretty crazy example of how to script a shader from scratch. Writing a script that converts an existing shader node_tree ( material ) is possible and could be written with a cascading recursion into the node_tree.

As soon as the shader starts to get complicated it's probably best to use a .blend and append materials from it instead.