Tried to create a repetitive geometry for skyscrapers that allows a random number to generate number of floors on the building for city topology. Seems random node will not work to set the count field on a mesh that is used as Instance on Instance on Points Node. Have a basic line that goes vertical. I want to add that line with various different random lengths, with more points for longer lengths that will be run into another instance on points node that will turn those vertical points into floors on buildings.
Instances on points is useful, currently feel like I can only use one instance type which is limiting, would be nice to be able to generate a random array based upon a set of instance types. A grid of points, able to alternate between different instances is less than straightforward through nodes. If I wanted to alternate different instances on robotic links (have a special design every other node) I am not sure how I would manage that. Duplicate Geometry is less than straightforward as well.
I am trying to accomplish the following pseudocode in Blender 3D 3.6.2
For each point in a mesh
generate a vertical Z line with random number of points
I can generate something similar by hand, but it would be nice to be able to programmatically create different length lines, as will be fed into to another instance on point node that will replace the points with an instance. Thus the line could look like 9 4 3 7 (two longer lines on outside), then when rerendered will have 9 instances on the normal of first point, 4 instances on the normal of the second point, 3 instances on the normal of the third point, and then 7 instances on the normal of the fourth point.
Generating programmatic geometry should be easier in my opinion. Should be a way to add scripts like the pseudocode above to a custom geometry node.