Hi Sean,

since the PyMOL GUI is written in python, it's quite easy to manipulate menus. See attached script to get the ID into the right click menu title.

Cheers,
  Thomas

Sean Law wrote, On 12/14/10 18:20:
Hi PyMOLers,

Is there a way to display PDB atom numbers when you right click on an atom? It normally gives information like object/segment/chain/resn/resid/name but I want a quick way of comparing the atom number with the PDB atom numbering.

Thanks!

Sean
from pymol import menu

x__pick_menu = menu.pick_menu

def pick_menu(self_cmd, sele1, sele2):
	ID = self_cmd.identify(sele1)[0]
	x = x__pick_menu(self_cmd, sele1, sele2)
	x[0][1] += ' ID:%d' % (ID)
	return x

menu.pick_menu = pick_menu
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Reply via email to