Can you overwrite mouse click in 3d view?

The idea is to prevent a mouse click in the 3d view, edit and sculpt modes, unless a certain condition in the script is met. Is this something that can be overwritten?

1 Like