Hi all, I’m trying to build a Grasshopper definition that allows me to dynamically change the widths of specific grid columns, and have the entire grid flex together when those columns change size.
I want to draw straight vertical curves in Rhino through the centers of the columns I want to modify. Any column that has one of these curves passing through it should be considered “selected.”
For each selected column, I want a slider that changes that column’s width. I’ve tried many different approaches, but none of them have been able to get the neighbor-columns to shift properly. Here is my latest WIP, but not sure where to take it from here.
The sketch below shows my intent. I start with a uniform grid (A), but the curves that intersect selected columns (B) determine a unique width for all B columns (with a slider) - the adjacent columns should flex with it across the whole grid, if that makes sense. In theory it seems simple, but I cannot figure it out.
jokes apart, the first thing that comes to my mind is to play with Domains, just because you can easily resize/remap those
and to be honest I wouldn’t go Rhino and back to make a selection, but I would for instance print something like unique indexes on top of each column (like where the A and B are in your image) and use a GH Panel to write down those column-references instead?
Nothing much? It’s just a start, not sure it leads anywhere yet. I’d follow Inno’s suggestion. Your ‘flex’ term made me think about a kangaroo approach to tweak some lengths while restraining others, but I don’t think it’s sane.