I would like to generate a polka dot pattern using material nodes. In the meantime I found this script which seems to achieve exactly what I want.
However, when I create a script node, link to the script internally and pipe the color output to a diffuse shader, my object is rendered black. Has something changed in Blender preventing this to work? Because I get no errors whatsoever.