I have made a box and I want to make the lid on it rotate open and closed. Seems easy enough but I can't figure it out. For one, the model is basically two groups: the lid and the rest of the box. I'm not sure what to link the actual lid to.. the geometry component? I haven't messed with Grasshopper in months and I'm not good at all to begin with (hoping to change that). Any help or advice would be grand!
I think what i would do is basically use feed the lid geometry into a BBox, then the BBox into an explode so as to obtain one of the corners vertices, you can then rotate the lid around that vertice using a plane with a normal in the horizontal. i attached a file. good luck
A slight variation on Brendon's method would be to identify an edge and use it in the rotate about an axis component. This way you might find it easier to choose which direction you wanted the lid to rotate.
This is more complicated than I thought! But this is great stuff, I will try both methods and learn/understand them so I can make progress in learning GH. Thanks guys!
It's used to get the mid points of the exploded edges. then sorting them based on height I can get the four curves that make up the base plane of the lid. then sorting them along the x axis I can get the edge that makes up the left hand side of the base plane. This is he axis i then rotate about.