Need some quick Grasshopper Help!

Hi, I’m an architecture student who has fairly extensive Rhino experience but nearly no Grasshopper experience!

In my design, some friends helped me create slats suspended on cables from the roof to the floor, and they connect from a line offset a quarter foot from the edge of both the ground and roof planes (see pictures). Right now the slats all face one direction, is there a grasshopper command that would rotate each slat so they follow the contour of the curve of the ground/roof planes, or is that something I’ll have to do manually with each one?

Thanks so much!

Nicholas

upload. share. show…
dont make us redo what you have, dont make us missunderstand your description…

1 Like

added screenshots I forgot to upload, my bad!

I have a slight inkling this might be homework? If it is you should play around and try to figure out the answer yourself. Otherwise, see below.

Possible Solution

You should be able to with these steps

  • Get a bounding box for each slat
  • Evaluate the box to get the bottom center of it
  • Perform a curve closest point against that point and the curve the slats are following. (OR create an interpolated curve from these points you have)
  • Get the tangent or normal of the curve
  • Use this to calculate a rotation for the slat against the World XY
1 Like

posting screenshots without posting the gh file is usually pretty useless, but it also depends on the level of help you want to get

in your case you have a Cluster, which is a black box that contains many other components, so it’s pretty difficult to understand what’s going on in your definition

from the screenshots of the actual geometries I see that all the slats are aligned the same way, probably just one of those is drawn on XY plane, then they are Oriented on the division points of the guide rail-curve: that plane on which they land should be oriented with the tangent vector of the rail curve

so it might be enough for you to Align Planes on the Target input of the orient component (if an Orient component even exists inside the Cluster) → the Tangent vector to be used as a guide comes from all the different division points along the rail curve

1 Like