While loop to change the elevation of elements

hi,
I am working on a script which will change the elevation of set of “points” while each and every “point” clash with the elements above them. I need help in while-loop, let me know if there are ways to do this.

1 Like

try the point.project node