Scale along a line

Hi all,

I am constructing a tower model and was wondering if I could scale floor plates along a line, while also keeping that face’s points along that line flat? Attached is an example of what I’m looking to achieve along with the script.
straight line (36.0 KB)

straight line series
Thanks so much.

Like this?

straight line (37.8 KB)


Yes that’s perfect, thank you so much.