Hi Jason, thanks for the reply. Your method works well for the single color background. For the gradient BG however the problem still remains: PyMOL>set bg_gradient, 1 PyMOL>get bg_rgb_top -> this returns '00004d', which seems to be the hex-value.
However when I try to set the bg_rgb_top/bottom value (regardless if I use hex or rgb-list) I still get an endless output of: Setting-Error: type read mismatch (color) 663 Setting-Error: type read mismatch (color) 663 Setting-Error: type read mismatch (color) 663 Setting-Error: type read mismatch (color) 663 Setting-Error: type read mismatch (color) 663 ... This message keeps flooding the output shell until I close the program. I guess this is rather a bug than intended? Best, Nils Gesendet: Donnerstag, 19. September 2013 um 17:39 Uhr Von: "Jason Vertrees" <jason.vertr...@schrodinger.com> An: "Nils NN" <n...@gmx.ch> Cc: "pymol-users@lists.sourceforge.net" <pymol-users@lists.sourceforge.net> Betreff: Re: [PyMOL] Background colors in PyMOL 1.6 Hi Nils, We've updated how PyMOL stores colors in sessions. You can try, cmd.get_color_tuple(cmd.get("bg_rgb")) or if you need it as a list: list(cmd.get_color_tuple(cmd.get("bg_rgb"))) Cheers, -- Jason On Thu, Sep 19, 2013 at 5:17 PM, Nils NN <n...@gmx.ch> wrote: Hello, I recently installed PyMOL 1.6 on my Debian machine. I have noticed that the description of the background colors has somehow changed. The command "get bg_color" returns [R,G,B] values in all previous versions, while since 1.6 it only returns values like "black" (which messes up some of my plugins and scripts). I'm not sure if this some kind of bug or a new way of handling colors... When I try to set the background gradient colors (set bg_rgb_top/bottom) I get an endless output of "Setting-Error: type read mismatch (color) 664" - I have to kill and restart the program to get rid of the message. Same happens with my scripts using cmd... Can someone confirm these problems? Perhaps I'm doing something wrong here. Thanks in advance, Nils ------------------------------------------------------------------------------ LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk[http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk] _______________________________________________ PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net[PyMOL-users@lists.sourceforge.net]) Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users[https://lists.sourceforge.net/lists/listinfo/pymol-users] Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net[http://www.mail-archive.com/pymol-users@lists.sourceforge.net] -- Jason Vertrees, PhD Director of Core Modeling Products Schrödinger, Inc. (e) jason.vertr...@schrodinger.com[jason.vertr...@schrodinger.com] (o) +1 (603) 374-7120 ------------------------------------------------------------------------------ LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk _______________________________________________ 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