Hi Wilson,

I don't know how to reset the color scheme, but maybe something along the
following lines can help out:


# set the colors (change to your liking):
colors = ("green","cyan","magenta","yellow")

# create a color iterator:
python
def colit():
    i = 0
    while True:
        yield colors[i%len(colors)]
        i += 1
python end

# initialize (or reset) colors
c = colit()

# load files and color them

load file1.pdb
cmd.color(c.next(), "elem c")

load file2.pdb
cmd.color(c.next(), "elem c")

# ...etc


Hope it helps,

Tsjerk



On Wed, Apr 10, 2013 at 9:03 AM, Wilson Omesiete <womesi...@gmail.com>wrote:

> I noticed that the default carbon color for loaded objects is set to cycle
> from green to pink and then repeat to differentiate models. I have a lot of
> models being loading and deleted within one session, and it would be very
> useful to be able to reset that cycle, So that the first model after a
> reset will have green carbons, the second will have cyan carbons, and so
> on. This way my coloring patterns would be consistent.
>
> The reset function does not affect the cba* cycle, and I know that I could
> manually call the cba* variants after every file is loaded to force this
> functionality, but I would rather avoid that if possible.
>
>
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> 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
>



-- 
Tsjerk A. Wassenaar, Ph.D.
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
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