Hi @Rhino_Bulgaria ,
Save the python code below as a .py file and call it by creating a new Alias:
import rhinoscriptsyntax as rs
id_L = rs.GetObjects('Select objects to show their name and layer', preselect=True)
for id in id_L:
name = rs.ObjectName(id)
layer = rs.ObjectLayer(id)
print( 'name: {}, layer: {}'.format(name, layer) )
I think you will figure out, if you would like to remove “name” or “layer” from the command menu printout.