Hi! Try this script, maybe it will help you. It creates a layer and puts all objects in it except the selected one. https://github.com/SPluzh/MayaObjectComponentSelectionMode
@SPluzh I've been looking for a script to do this for 2 years lmao. Thank you! (for the record it is different from F8, F8 allows you to select components from multiple objects which is just really annoying in 90% of situations)