How do I delete all the input geometry in a Grasshopper Player definition?

I tried to write my first grasshopper player definition. All it does is take objects and move them so the lowest xyz point of their bounding box is at zero, with an option to offset them.

It works, except it copies the objects, it doesn’t move them, of course, because I don’t know how to delete the input.

Is there a grasshopper player component that deletes input?

Fit at Zero.gh (17.8 KB)

Hi Max -

There are no factory-default components that do anything with Rhino geometry. They all work with referenced geometry.

You can probably use a script (VB, Python, C#) to delete the Rhino geometry.
-wim

I tried one of the scripts I found here: Delete Rhino Objects via GUID

But it won’t work. Fit at Zero.gh (17.1 KB)

Seems like if Grasshopper Player is designed to run from rhino, maybe the “get” components that reference any form of geometry should have a “delete input?” prompt option?

Hi Max - This was discussed internally and the conclusion was that the context components will handle this. I’ve put it on the list as RH-60296 so that it doesn’t disappear between the cracks.
-wim

1 Like