> colors by atom. But that one Warren knows (as he knows how > to read the color from an atom, but that's someqhere in > the archive too ;) ). Unfortunately I don't think I can > find the time to extend mvGradCol myself at this moment :(
A simple rainbow uses colors "o107" through "o893". It would take some Python loop programming, but the easiest way to get the effect would be to read the colors using cmd.get_color_tuple, setting them to new colors using cmd.set_color, and then issuing a recolor command before rendering. PyMOL>print cmd.get_color_tuple("o107") (0.0020005344413220882, 0.0, 1.0) PyMOL>cmd.set_color("o107",[1,1,1]) Color: "o107" defined as [ 1.000, 1.000, 1.000 ]. ... PyMOL>cmd.recolor() etc. Cheers, Warren -- Warren L. DeLano, Ph.D. Principal Scientist . DeLano Scientific LLC . 400 Oyster Point Blvd., Suite 213 . South San Francisco, CA 94080 . Biz:(650)-872-0942 Tech:(650)-872-0834 . Fax:(650)-872-0273 Cell:(650)-346-1154 . mailto:war...@delsci.com > -----Original Message----- > From: pymol-users-ad...@lists.sourceforge.net > [mailto:pymol-users-ad...@lists.sourceforge.net] On Behalf Of > T.A.Wassenaar > Sent: Tuesday, January 18, 2005 12:21 AM > To: pymol-users@lists.sourceforge.net > Subject: Re: [PyMOL] change from spectrum to solid colour in animation > > > Hi Noboru, > > Basically you could use that command, though you would > have to extend it such that it reads the starting color > from the atoms. As I recall that is possible in pymol. > Only question which remains then is whether spectrum truly > colors by atom. But that one Warren knows (as he knows how > to read the color from an atom, but that's someqhere in > the archive too ;) ). Unfortunately I don't think I can > find the time to extend mvGradCol myself at this moment :( > > Hope it helps a bit, > > Tsjerk > > On Mon, 17 Jan 2005 11:48:52 -0500 > noboru <noboru.ishiy...@mail.mcgill.ca> wrote: > > Hi everyone, > > I'm making an animation with PyMOL right now and was > >wondering if someone could advise me on how to gradually > >change the colour of protein in cartoon representation > >from spectrum to a solid colour. I don't think I can use > >the mvGradCol command from rTools for this effect... > > Thanks for your help in advance. > > Noboru > > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< > > Noboru Ishiyama > > Department of Biochemistry > > McGill University > > 740 Dr. Penfield Ave., Room 5400 > > Montreal, Quebec, Canada H3A 1A4 > > Tel.: (514) 398-8781 > >Fax: (514) 398-2036 > > Email: noboru.ishiy...@mail.mcgill.ca > > Web: http://xray.biochem.mcgill.ca/people/noboru/ > > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > PyMOL-users mailing list > PyMOL-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pymol-users >