I am very sure there is a better way than this, but here it is anyway.
and a GIF of it in action
and the Dynamo graph
setElevationCrops.dyn (29.3 KB)
I am very sure there is a better way than this, but here it is anyway.
and a GIF of it in action