Maybe I should have made myself clearer. The script hides/unhides everything that you do not have selected. Copy the script into Maya's Script Editor, highlight it and middle mouse drag it to a shelf or get into the Hotkey Editor and make a new hotkey and paste the script there, if you don't know how to make a custom hotkey --->https://download.autodesk.com/us/maya...umber=d0e92970