Rectangular Grid With Selectable Columns That Flex Neighboring Columns

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.

What does this ‘shift’ look like? Do you have a sketch or example image of the desired/intended result?

Thank you for your response, Rene.

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.

1 Like

Do you plan on sharing a file with internalized data? :slight_smile:

CORE GH SANDBOX_2D LAYOUT GENERATOR_FORUM.3dm (358.2 KB)

CORE GH SANDBOX_2D LAYOUT GENERATOR_FORUM.gh (10.6 KB)

Yes of course! Thank you for your help.

this is a bold statement :smiley:

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?

1 Like

Key phrase, “in theory” :grin: Let me take a look at this method, thanks for the suggestion.

@René_Corella what did you think of my initial setup?

1 Like

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.

2 Likes