I'm wondering if it is possible to have a node that reads and execute python code and that can be plugged (like an outColor attribute) ?

I'm not sure this can be done; I'm aware of python has shortcomings like threading and I do not know much how the DG works but I'm just wondering what roads I should go down. This would mainly for prototyping, and even in production I don't mind a 5 second operation using a basic library like PIL.

This will work only for the software renderer, 3rd party renderers don't understand custom nodes, so you'll have to write the corresponding .mi shader (mental ray) or vray plugin, or whatever you render engine needs.

Originally Posted by Azrail:This will work only for the software renderer, 3rd party renderers don't understand custom nodes, so you'll have to write the corresponding .mi shader (mental ray) or vray plugin, or whatever you render engine needs.

so basically the noise/checker nodes actually have their own implementation for every engine ?

Originally Posted by Azrail:This will work only for the software renderer, 3rd party renderers don't understand custom nodes, so you'll have to write the corresponding .mi shader (mental ray) or vray plugin, or whatever you render engine needs.

Is this true for now? I havent really switched over and given >2013 that much go but the custom nodes I have written in Python works fine with all renders I tried them in, I use VRay mostly so should be fine if you ask me.

What type of custom nodes? If you mean designated shading nodes, like pattern generators of some sort (voronoi, stripes and whatnot), I will be glad if I'm wrong. I also have nodes, which work, but that's mainly because they manipulate vertex colors and other geometry stuff, so in the end it's just plain geometry.
It would be nice if you can share some code also.

Follow Us On:

The CGSociety

The CGSociety is the most respected and accessible global organization for creative digital artists. The CGS supports artists at every level by offering a range of services to connect, inform, educate and promote digital artists worldwide. More about us on TheArtSociety.com