All pastes #220604 Raw Edit

Stuff

public python v1 · immutable
#220604 ·published 2006-10-25 07:40 UTC
rendered paste body
import Blenderimport Blender.Node as bNdef init(node):	colout = (bN.RGBA, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0)	turb = (bN.VALUE, 0.25, 1.0, 1.0, 1.0,  0.0, 10.0)	node.inputs = {'Turbulence':turb}	node.outputs = {'Colour':colout}def clouds(texvec, depth, hard, basis, amp, freq):	return Noise.turbulence(texvec, depth, hard, basis, amp, freq)	def execute(node):	node.outputs['Colour'] = node.inputs['Turbulence'] * clouds(node.texvec, 2, 0, 1, 0.5, 2.0)#Next line is optional depending on how its coded internally#however this line would allow arbitrary function names, and#probably easier internal coding.bN.Register(init, execute)