Hi Peer
I hope I understand you right.
I've made this node to find highest and lowest points on a curve (according to the z axis), using its bounding box.
It works on curves drawn in front viewport,
But I guess you can modify its algorithm to use inside a script.
 
|