Richard, In order to get the new name appended onto the list, you can edit the lists in modules/pymol/menu.py.
You can also do this at runtime without modifying PyMOL source code. Simply create a function in your own ".py" file and then simply reassign the function pymol.menu.mol_color. import pymol # create a new menu definition function def my_mol_color(s): return [[ ... ], [ ... ]] # start with examples in util.py # now replace PyMOL's (welcome to the power of Python!) pymol.menu.mol_color = my_mol_color # the menu will be updated immediately To define a new color, use the set_color command: set_color my_color,[0.5,0.5,1.0] color my_color, all Cheers, Warren -- mailto:war...@delanoscientific.com Warren L. DeLano, Ph.D. Principal Scientist DeLano Scientific LLC Voice (650)-346-1154 Fax (650)-593-4020 > -----Original Message----- > From: pymol-users-ad...@lists.sourceforge.net [mailto:pymol-users- > ad...@lists.sourceforge.net] On Behalf Of RichGB > Sent: Wednesday, July 02, 2003 10:58 AM > To: pymol_users > Subject: [PyMOL] element colouring schemes > > How can I add a new scheme to the list of element schemes under the > "rainbow" > button? I see what appears to be scheme definitions in util.py but I don't > see > where the colours, e.g. "nitrogen" are defined. If I create a small > definition > similar to what is in util.py where do I place it to get it loaded into > the > button and appended to the current list? > > Richard Ball > Merck Research Labs > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > _______________________________________________ > PyMOL-users mailing list > PyMOL-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pymol-users