Re: [PyMOL] Object name for each object in grid display mode

2022-07-20 Thread Tomas Malinauskas
Hi Rintarou, Your script works beautifully! Thanks a lot. Best wishes, Tomas On Wed, Jul 20, 2022 at 3:50 AM Suzuki, Rintarou wrote: > > 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",

Re: [PyMOL] Object name for each object in grid display mode

2022-07-19 Thread Suzuki, Rintarou
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("a

[PyMOL] Object name for each object in grid display mode

2022-07-19 Thread Tomas Malinauskas
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 ___