The HighlightObjectLayers command selects the layers of selected objects when the Layer panel is visible.