Helix
Spin me right round.
This builds on the work of the previous scripted projects, the new tweaks to this one are:
Defining the material setups as functions
Changing the scale of some of the meta objects once added to the scene
Placing meta and mesh objects in the scene
Adding elements to the colour/color ramp node
Only the material for the mesh spheres benefited from being a function, I made both of them functions however for consistence. Having these set up as functions allowed me to set the spheres to one of four colours without needing to create four almost identical sets of node setups.
Next guess work and auto complete helped me work out how to add / append elements to the color ramp node. The default of the node is to have just two elements (initially set to black and white), once added these elements can then be set to specific locations and colours.
add elements to color ramp