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
> _______________________________________________
> 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
Director of Core Modeling Products
Schrödinger, Inc.

(e) 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

Reply via email to