Delete behavior change from V7

In Rhino 7 a simple macro could do both pre and post selection deletions:

! Select pause Delete

This macro would allow both pre and post deletions in Rhino 7. However in Rhino 8/9 this macro only allows for post selection. For pre-selection this macro works: ! Delete pause

What would a macro for Rhino 8/9 look like that allows both pre and post selection for deleting?

Thanks,

Dan

Hmm, not clean, but you can do ! Delete Select pause Delete. This works like you want for post-select, but for pre-select, you have to enter/space/esc afterward to cancel the select command.

Hey Dan,

ISTR someone else mentioning this awhile back… I think for now you’re stuck with replacing the macro with the following:

import rhinoscriptsyntax as rs
obj_ids=rs.GetObjects(preselect=True)
if obj_ids: rs.DeleteObjects(obj_ids)

Hi Mitch,

I thought of scripting it too, but I couldn’t believe something as simple as deleting had taken such a hit. Thanks for the suggestion.

Dan