Hi Tomas, You can do it with the following script
from pymol import cmd cmd.set('grid_mode', 1) ids = ("1A70", "1AG6", "1B9W", "1BJA", "1BM8", "1BMG", "1BOX", "1BTE", "1BXU", "1BXV", "1BYO", "1BYP") for i in ids: cmd.fetch(i) if i != "1A70": cmd.cealign("1A70", i+" & c. A") cmd.zoom("all", "-20") for i in ids: cmd.pseudoatom(i+"_info") cmd.label(i+"_info", '"{}"'.format(i)) cmd.set('label_size', 16, i+"_info") cmd.set('label_position', '0, 7, 10', i+"_info") cmd.group(i+"_group", "{0} {0}_info".format(i)) cmd.hide("everything", "r. hoh") cmd.hide("everything", "c. B") cmd.hide("nonbonded") Regards, Rintaro On 2022/07/20 1:48, Tomas Malinauskas wrote: > Dear All, > > Is it possible to show the object name for each object in grid display > mode? E.g. I have 12 PDBs loaded in grid mode and would like to show > their IDs (not in the side panel but in the main window) at the same > time. > > I thank you for your help. > > Best wishes, > Tomas > > > _______________________________________________ > PyMOL-users mailing list > Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net > Unsubscribe: > https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe _______________________________________________ PyMOL-users mailing list Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net Unsubscribe: https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe