I am new to using Grasshopper and I just can’t seem to figure this out.
I want to be able to adjust the width and length of a box and have objects each corner of the box adjust accordingly. I have attached photos to try and better explain this. I have also attached the grasshopper script.
Essentially, I am able to adjust the size of the box, I am able to move the four objects. But I am not able to adjust the box and have the objects location adjust in the X, Y direction automatically.
I hope that’s clear. Any help would be greatly appreciated!
For symmetrical assemblies it usually makes sense to keep the main part centered a the origin. Out of the four smaller parts only one would need to be placed and the world coordinate planes could be used to mirror the small part twice.
I thought about defining planes on the sides of baked geometry and ran into this problem:
A bug? I am wary to report, because I have made ass of myself the last two times I tried. (I got the plane to realize by clicking on the parallel XY option from the command line)
Anyhow, orienting by plane as @Ivan20 suggests is also a good method, but for this you’ll want the connecters as two pieces (flange and tube) so that you can use their bounding boxes better.
You could also place the connectors at the right position and use Stretch on the assembly.