Dynamo façade vertically then diagonally on a diamond grid

I’m having issues creating a façade that starts vertically and then incrementally turns diagonally whilst remaining parallel. I managed to work with a script that can turn diagonally, but it’s turning on the same Y-Plane, if I split the faces up and run the scripts in sections.

So, I reverted and created a script that works with a diamond grid, This is a much simpler approach but now finding the correct equation for my selection makes it seem impossible to keep it parametric.

image

If there is anyone that can help it will be greatly appreciated. Please find the script attached :
Mass loft Forum.dyn (41.8 KB)