Modify Selection Filter

Hi,

Is there a way to turn off or modify the selection filter?

I am selecting all the objects in a layer using rs.ObjectsByLayer, however, if for example the layer contains a mesh and the mesh selection filter is unchecked, the mesh will not be selected. Is there a way to ignore or change the selection filter so that all the items in the layer will be selected regardless of the initial state of the selection filter?

Thanks!

Hi Wattzie,

I would disable the selection filter before getting ids of all objects on particular layer, and then enabling it afterwards:

import rhinoscriptsyntax as rs

rs.Command("_-SelectionFilter _DisableFilter=Yes _Enter", False)
ids = rs.ObjectsByLayer("Default", True)
rs.Command("_-SelectionFilter _DisableFilter=No _Enter", False)

Exactly what I was after.

Thanks djordje!