Loose_part selection mode

Hey coders

Im trying to make a new selection mode. To select a part in edit mode. Does anyone know how to do it properly.

I’m a noob at python, but just tried to hack stuff together.

Why dont we have such a selection mode already?

Isn’t that what L key does? (select linked)

This selection mode would be really useful especially for coming from 3d max where it is named “Element”.
I tried to do it myself but seems like this file just python interface to Blender API, and it of course doesn’t know what “Element” is :frowning:
Unfortunately I can not update Blender source code for this. Maybe someone can?

you could fake this with a python script that replaces default LMB select by bps.ops.mesh.select_linked_pick()