# Selection filter toggle Points

**URL:** <https://discourse.mcneel.com/t/selection-filter-toggle-points/156663>\
**Category:** Rhino\
**Tags:** windows, selection-filter\
**Created:** [March 18, 2023, 9:47pm UTC](https://discourse.mcneel.com/t/selection-filter-toggle-points/156663 "2023-03-18T21:47:50Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Baris](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/baris/32/772765_2.png) [@Baris](https://discourse.mcneel.com/u/Baris)\
**Post date:** [March 18, 2023, 9:47pm UTC](https://discourse.mcneel.com/t/selection-filter-toggle-points/156663/1 "2023-03-18T21:47:50Z")

</div>

Hi everybody,

could anybody help me putting the Selectionfilter as a toggle on a key, like F4?  
When I am working on SubD it is driving me crazy, that I have to close the window that pops up, to turn back to “normal”.  
 ![grafik](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/f/b/4/fb46854f0eee54f9da70a7d93b43d8d1f9d98f78.png)

Thanks and sorry if I was too stupid to search/find  
Best

---

<div class="post-metadata">

**Author:** ![andrew.nowicki](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/andrew.nowicki/32/764376_2.png) [@andrew.nowicki](https://discourse.mcneel.com/u/andrew.nowicki)\
**Post date:** [March 18, 2023, 11:39pm UTC](https://discourse.mcneel.com/t/selection-filter-toggle-points/156663/2 "2023-03-18T23:39:46Z")

</div>

Press and hold Alt key.

There is another option: you can click Disable button on the bottom to reverse the Alt key behavior.

(By the way, osnaps work the same way.)

---

<div class="post-metadata">

**Author:** ![Baris](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/baris/32/772765_2.png) [@Baris](https://discourse.mcneel.com/u/Baris)\
**Post date:** [March 20, 2023, 3:51pm UTC](https://discourse.mcneel.com/t/selection-filter-toggle-points/156663/3 "2023-03-20T15:51:43Z")

</div>

Hi @andrew.nowicki ,

probably I do not understand. Do you mean without the selectionfilter, like when pressing shift and control?

---

<div class="post-metadata">

**Author:** ![Helvetosaur](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/helvetosaur/32/635974_2.png) [@Helvetosaur](https://discourse.mcneel.com/u/Helvetosaur)\
**Post date:** [March 20, 2023, 4:34pm UTC](https://discourse.mcneel.com/t/selection-filter-toggle-points/156663/4 "2023-03-20T16:34:49Z")

</div>

> [@andrew.nowicki](#):
>
> Press and hold Alt key.

I am not aware that holding Alt toggles the enable/disable of the selection filter… only object snaps.

---

<div class="post-metadata">

**Author:** ![Helvetosaur](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/helvetosaur/32/635974_2.png) [@Helvetosaur](https://discourse.mcneel.com/u/Helvetosaur)\
**Post date:** [March 20, 2023, 4:38pm UTC](https://discourse.mcneel.com/t/selection-filter-toggle-points/156663/5 "2023-03-20T16:38:49Z")

</div>

> [@Baris](#):
>
> could anybody help me putting the Selectionfilter as a toggle on a key, like F4?

The macro to toggle the SelectionFilter dialog is as follows: `'_SelectionFilter`

You can also create macros for individual object types using the dash version of the command  
`-_SelectionFilter` plus all of the command line options you want to activate/deactivate.

---

<div class="post-metadata">

**Author:** ![Baris](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/baris/32/772765_2.png) [@Baris](https://discourse.mcneel.com/u/Baris)\
**Post date:** [March 20, 2023, 6:25pm UTC](https://discourse.mcneel.com/t/selection-filter-toggle-points/156663/6 "2023-03-20T18:25:01Z")

</div>

Thanks for your answer @Helvetosaur !  
Is it possible to have selectionfilter\_ Points and selectionfilter disable(or whatever brings it back to normal)on the same key? I am not at a pc right now… Tomorrow I will try my best

---

<div class="post-metadata">

**Author:** ![andrew.nowicki](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/andrew.nowicki/32/764376_2.png) [@andrew.nowicki](https://discourse.mcneel.com/u/andrew.nowicki)\
**Post date:** [March 20, 2023, 8:59pm UTC](https://discourse.mcneel.com/t/selection-filter-toggle-points/156663/7 "2023-03-20T20:59:07Z")

</div>

> [@Helvetosaur](#):
>
> I am not aware that holding Alt toggles the enable/disable of the selection filter…

You are correct. The Alt key disables all selections - maybe it is a bug?

---

<div class="post-metadata">

**Author:** ![Baris](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/baris/32/772765_2.png) [@Baris](https://discourse.mcneel.com/u/Baris)\
**Post date:** [March 20, 2023, 9:50pm UTC](https://discourse.mcneel.com/t/selection-filter-toggle-points/156663/8 "2023-03-20T21:50:14Z")

</div>

Do you mean right clicking an item? That inverses the selection

---

<div class="post-metadata">

**Author:** ![Helvetosaur](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/helvetosaur/32/635974_2.png) [@Helvetosaur](https://discourse.mcneel.com/u/Helvetosaur)\
**Post date:** [March 21, 2023, 8:38am UTC](https://discourse.mcneel.com/t/selection-filter-toggle-points/156663/9 "2023-03-21T08:38:11Z")

</div>

> [@Baris](#):
>
> Is it possible to have selectionfilter\_ Points and selectionfilter disable(or whatever brings it back to normal)on the same key? I am not at a pc right now…

To a limited extent, yes. Unfortunately the SelectionFilter is not all that easily macro-able. You can set it to toggle the dialog box on and off (which makes it active/inactive) with a particular certain setting. However, it is not possible with the same macro to bring back the “full-on” setting afterwards. So a macro like this will toggle the dialog and set it to “only points”:

```auto
_NoEcho
'_-SelectionFilter
_ShowDialog
_Curves=_No 
_Surfaces=_No 
_Polysurfaces=_No
_SubDs=_No
_Meshes=_No
_Annotations=_No
_Lights=_No
_Blocks=_No
_Points=_Yes
_ControlPoints=_No
_PointClouds=_No
_Hatches=_No
_Others=_No
_ Subobjects=_No
_DisableFilter=_No
_Enter

```

The above will set “only points” and toggle visibility ( and thus enable/disable) each time you run it.

Another variant might be:

```auto
_NoEcho
'_-SelectionFilter
_ShowDialog=_Yes
_Curves=_No 
_Surfaces=_No 
_Polysurfaces=_No
_SubDs=_No
_Meshes=_No
_Annotations=_No
_Lights=_No
_Blocks=_No
_Points=_Yes
_ControlPoints=_No
_PointClouds=_No
_Hatches=_No
_Others=_No
_ Subobjects=_No
_DisableFilter
_Enter

```

Which keeps the dialog open but simply toggles the enable/disable setting. However, if you want to reset the filter dialog to ‘all’ afterwards you need a different macro:

```auto
NoEcho
'_-SelectionFilter
_SetAll
_Yes
_Enter

```

I am going to look into the possibility of scripting this, it looks like the settings are exposed in RhinoCommon.

---

<div class="post-metadata">

**Author:** ![Baris](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/baris/32/772765_2.png) [@Baris](https://discourse.mcneel.com/u/Baris)\
**Post date:** [March 21, 2023, 5:52pm UTC](https://discourse.mcneel.com/t/selection-filter-toggle-points/156663/10 "2023-03-21T17:52:32Z")

</div>

thanks again @Helvetosaur ,  
a problem seems to be that for editing SubD Vertices, I need to turn on SubObjects, which messes eversthing else up, I want to move.  
Like so often, something which seems very basic turns out way more complicated…  
Thanks again for your time!
