How to remove selected objects from a point grid?

Hello everyone!

I am searching for a solution to remove the yellow marked columns from the grid which I formed by point arrays, so that all other ones stay at their places unchanged.

Does anybody know a way how to solve this is as easy as possible? I have attached the entire script as well for reference.
Thank you!



Grasshopper Script.gh (25.9 KB)

use a list item to find out the index of those two columns, then cull those two indexes from your data

I have tried it out, but culling the indexes doesn’t work out. Do you know what I’m doing wrong here?

:white_check_mark: Why your culling didn’t work

In your screenshot, you’re doing this:

  1. Find two items with List Item

  2. Get their indices

  3. Use those indices in Cull Index

But here’s the Grasshopper trap:

:check_mark: List Item does not give you the indices — it only extracts the values.

You are still missing the actual index numbers to feed into Cull Index.

Grasshopper does not automatically back-solve “where in the list did this value come from?”

That’s why Cull Index is doing nothing — it’s receiving invalid or empty index values.


:white_check_mark: How to correctly remove two items by value

To remove the columns you found:

Method 1 — Use Member Index (the correct way)

If you already know the values you want to remove:

  1. Take the outputs of your List Item (the two column vectors)

  2. Plug them into Member Index

    • This returns the correct indices
  3. Merge the two indices

  4. Plug that into Cull Index

there is also an alternative method, finding the member index, and then dispatching your list into true/false that separates the wanted columns from the unwanted ones

with member index and dispatch

1 Like