have you tried:
import util
util.cbag
util.cbay
util.rainbow
etc?
after you type "import util", you can type "util." followed by a <tab> to
see the available commands.
On Tue, Feb 9, 2010 at 6:09 PM, Nathaniel Echols <nathaniel.ech...@gmail.com
> wrote:
> On Tue, Feb 9, 2010 at 2:46 PM, Ariel Talavera <talav...@cim.sld.cu>wrote:
>
>> How can I use the color by element (HNOS) function present in the GUI,
>> in a script?
>>
>
> I don't think there's a single command that does this; I've always done
> something like this:
>
> color grey80, elem c
> color white, elem h
> color red, elem o
> color blue, elem n
> color orange, elem s
>
> and so on (in python, these become 'cmd.color("grey80", "elem c")', etc.).
> I just discovered that there is also a separate color name for each
> element, e.g. "color carbon, elem c" will work, but the default coloring
> scheme seems a bit wacky sometimes (carbon is green, etc.). If there was a
> convenient way to switch between available color sets (e.g. all of the
> options available in the menus), that would be awesome. Currently the
> atom-name colors are hardcoded in C, unfortunately.
>
> Nat
>
>
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> _______________________________________________
> 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
>
--
Michael Lerner, Ph.D.
IRTA Postdoctoral Fellow
Laboratory of Computational Biology NIH/NHLBI
5635 Fishers Lane, Room T909, MSC 9314
Rockville, MD 20852 (UPS/FedEx/Reality)
Bethesda MD 20892-9314 (USPS)
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
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