I’m looking for a solution that allows me to select objects based upon attribute key:value pairs assigned to the geometry. I know elefront provides this in grasshopper, but is there a way of doing it in Rhino - natively or through a plugin? Ideally, it would have some functionality to incorporate multiple booleans for filtering.
maybe some python like this to get started (the boxes have user strings of
'box':'one', 'box':'two', 'box':'three')
import Rhino keyvals_to_select = [ ('box', 'two'), ('box', 'three') ] try: Rhino.Display.RhinoView.EnableDrawing = False for obj in Rhino.RhinoDoc.ActiveDoc.Objects: obj.Select(any(obj.Attributes.GetUserString(x) == x for x in keyvals_to_select)) finally: Rhino.Display.RhinoView.EnableDrawing = True