Cleaned up a little, this would make a nice simple addition to the PyMOLWiki script library.
Cheers, -- Jason On Mon, Dec 19, 2011 at 2:13 AM, Takanori Nakane <t.nak...@mail.mfour.med.kyoto-u.ac.jp> wrote: > Hi Jacob, > > The following command will make blue to purple spectrum. > (please type in one line) > > for i in range(1 + cmd.count_states()): cmd.set("cartoon_color", > "0x%02x00ff" % (i * 255 / (2 + cmd.count_states())), "all", state=i) > > You can change spectrum by changing > "0x%02x00ff" % (i * 255 / (2 + cmd.count_states())) > part. > > > Best regards, > > Takanori Nakane > > ------------------------------------------------------------------------------ > Learn Windows Azure Live! Tuesday, Dec 13, 2011 > Microsoft is holding a special Learn Windows Azure training event for > developers. It will provide a great way to learn Windows Azure and what it > provides. You can attend the event by watching it streamed LIVE online. > Learn more at http://p.sf.net/sfu/ms-windowsazure > _______________________________________________ > 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 -- Jason Vertrees, PhD PyMOL Product Manager Schrodinger, LLC (e) jason.vertr...@schrodinger.com (o) +1 (603) 374-7120 ------------------------------------------------------------------------------ Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev _______________________________________________ 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