Rotating louvers along curve

Hi! I know this is probably a really simple problem but I am an absolute beginner and would really appreciate some assistance.

I am trying to create louvers along a curve, and I would like them to have a random rotation or at least be aligned with the curve (currently they are all kind of diagonal to my curve).


Is there a simple way to do this in Grasshopper? This is my current definition:
image

Thank you!

Welcome @andytechture,

You can use HFrames (Horizontal Frames) to subdivide the curve. It gives you an aligned plane at each division point on the curve.

For the left curve, the boxes are placed “normal” to the curve. For the right one, the plane is first rotated 90° (i.e. Pi / 2) around its normal (i.e. z-axis) to align the boxes to the curve tangents at each division point.

Screenshot 2020-10-15 at 08.25.44

These are two examples. You can pick whatever you prefer. You can manipulate the number of placed boxes with the N-input of the HFrames components. I left it at default.

Next time, it would be nice, if you could at least provide a GH file with the internalised base geometry, in this case two curves! It simply makes things easier.

louvers_01.gh (8.4 KB)

Thank you so much for your help!! I will definitely do that next time.