How to delete the input objects after a macro runs?

I think this is basically what I want:

_dupedge
_pause
-grasshopperplayer “W:_Resource Library_Grasshopper Definitions\mirror_x_srf.gh”
_pause
_selprev
_delete

However the _selprev is giving me the output from GH, not the input curve I am trying to get rid of. I am trying to select 2 objects ago basically I guess.

Hi Ryan -
You can create a named selection between the pause and running GrasshopperPlayer. Then, when all is done, just get that named selection and delete it.
-wim

1 Like