How to isolate objects

I’m creating a pergola in which the panels can close, stand (like in the photo - to allow sun light to go through) and fold to one side of the curve to open the whole system completely.
How can I isolate the rectangles to perform these actions??

What do you mean by “isolate the rectangles?”

You can use List Item to access each of the rectangles. Or make a list of angles either by script or manually (same # as # of rectangles, you can use ListLength) and feed into rotate component.

thank you! exactly what i needed. i just began learning Grasshopper so I don’t know much.

would you happen to know how to slide the points to one side of the curve and stop them there? without overlapping

Not exactly sure what you mean, but if you’re trying to move the rectangles along the curve, there are lots of ways to do it. Probably want to use AreaCentroid or explode/get the verts of the rectangles to get the base point, and use Move with a vector, EvaluateLength, Seam…

You should look on this forum for common problems like this, and the Grasshopper Docs can help with how to use components. Grasshopper Component Index | Grasshopper Docs

Also for future, if asking a question it helps to have annotated screenshots & attach the original script with Internalized Data (right click on the thing and click “internalize data”) if you have base curves or something you are working from.