Let the user Deselect from Selection


I’m looking for a way to let a user (interactively) deselect from the current selection.
So I present a selection and ask the user to deselect objects before continuing.

Before I spend time setting it up myself, I’d like to ask if anyone has an example ready for Python?


Hi Willem,

Does this help?


Hi Dale,

At first I was confused because I expected a mouse click to toggle the selection state
I found now however that deselecting is as with regular deselecting via CTRL+LMB.

For my purpose I need the possible objects to select to be limited, but I’ll see what I can come up on my own with after scrutinizing what the Custom.GetObject() has to offer.

Thanks for getting me up to speed!