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?
Merck Research Labs
From: Warren L. DeLano <warren@de...> - 2003-07-02 19:16:41
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.
# create a new menu definition function
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:
color my_color, all
Warren L. DeLano, Ph.D.
DeLano Scientific LLC
> -----Original Message-----
> From: pymol-users-admin@... [mailto:pymol-users-
> admin@...] 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
> button? I see what appears to be scheme definitions in util.py but I
> where the colours, e.g. "nitrogen" are defined. If I create a small
> similar to what is in util.py where do I place it to get it loaded
> 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.
> PyMOL-users mailing list