I'm new to blender and am wondering how I can have n
cube geometry nodes in a line where a random subset of x
of them are given a random z scale and all others not in that subset have their z scale interpolated based on their neighbors.
I've played around with this for several hours but I have no idea how to only set the z scale on a random subset of x
geometry nodes. And from there, I'm not sure how to interpolate others' z scales.
This is what I have so far. Right now, all Geometry Nodes have a random z scale:
Which looks like this:
Are there any specific editor nodes I should be aware of that would help in doing this? I've searched around but haven't found anything useful.
I'm familiar with Python scripting and this seems like it would be easy to do there, so if you have any ideas on how to do this, that would help too. I'm not even sure how to get the references to each node in Python.
EDIT
Ok, so I figured out how to set the scale of a random subset of instances. (I can control the probability of an instance being in this subset, but I couldn't figure out how to get exactly x
instances but whatever)
But I still have no idea how to interpolate the scale of the instances between the blue ones. The accumulate field node looks interesting but I'm not having any luck. Any ideas?