Creating varying rectangle areas

Hello, I’m new to Grasshopper. What I want to do is create varying rectangular polygons along a line (using the rectangle component). This is to create a truss with a varying cross-section.

I want it to increase at the beginning of the run and decrease at its end similar to the telescopic look if you’re an architecture student like me. I also want to make the rectangles reposition on the center of the line.

Thank you.

14087

Hi.
Hope it helps out…

GradientScaling_re.gh (11.6 KB)

4 Likes

Thank you very much. I’ve implemented it into my truss definition and I’ve achieved the desired outcome!

Could tell me how do you place the rhino viewport image in an inclined manner like that at the right of the image?

Ctrl+Shift+Q