Remove list items based on proximity to curve

Hello. I am new to grasshopper. I’d like to make a simple change to this script and add a cull pattern that removes geometry progresivelly as it gets closer to the point I marked on the photo.
I understand I should be working with some sort of cull component to remove list items after I get the culled grid with Dispatch. Basically I want the density of buildings to reduce in the proximities of the point.
Please have in mind that I’m a beginner so the simpler the script the more it will help me learn how things work
curve attractor.3dm (635.6 KB)
curve attractor.gh (31.5 KB)

DUPLICATE THREAD!!! :frowning:

Hi Elisa,

I added some components to your script, to delete buildings based on the distance to a point.
With a slider you can set the threshhold distance whether a building is deleted or not.

Hope this is how you imagined it.
curve attractor.gh (38.8 KB)
curve attractor.3dm (634.2 KB)

In the other thread @Elisa_Goldfarb said this:

I would like to reduce the density (eliminate some of the buildings) progresively towards the curve.

Her image in this thread suggests the same thing: “progressively”. Which is more complicated than culling by distance alone. Which is why I didn’t do it in my first draft reply yesterday.

I’m so sorry about this. It was not my intention to dismiss your help, I just had a hard time understanding your scripts because I’m a beginner. I’ve managed to scale the footprint of the buildings and to rotate them using orient direction, but I wanted to make a second alternative that affects the height and the density. I appreciate your time and help.

It works great and I was able to understand what you did, so thank you very much. Now, I’d like to scale the height of the buildings based on proximity to the point. Currently the height is determined by amount and height of floors but it is a fixed one, so I want to introduce a parameter that will allow me to decrease the height based on the distance to the point. Could you help me do it?

Well, in your question lies the answer. height is determined by amount and height of floors. So, tie one variable to the proximity. Say the number of floors. So multiply the number of floors by the attractor range (assuming 0 to 1), the round to the nearest integer (can’t really have 0.66 of a floor, ignoring lofts and such for simplicity), and re-create the building size

Can you help me? I don’t know what I’m doing, I just copied the remap numbers bit from another script but someting is not working. The height is not proportional to the distance from the point, and also there is one building that appears to be multiplied (look at the photo). I’m attaching the files


curve attractor.3dm (657.7 KB)
curve attractor.gh (46.5 KB)

Yes, I can help you learn the method.

It is not enough to simply copy from a script; use the existing script as a learning example, and take the time to understand it.

Suggest, as a learning exercise, start a new script.

First step, calculate a proportion of distance from an attractor.

Once you have that working, then we’ll move on the next step

This was already done in the other thread, version ‘Feb8c’: