From: Thomas H. <sp...@us...> - 2013-10-02 14:41:08
|
Hi Nils, getting hex colors from settings is fixed in SVN rev 4043. Cheers, Thomas On Sep 20, 2013, at 10:14 AM, Jason Vertrees <jas...@sc...> wrote: > Hi Nils, > > Thomas will soon fix the return values of the get command for color to properly contain the "0x" prefixes. In the meantime, please add them yourself if this is causing lots of problems: > > # prepend the result with 0x > > x = "0x%s" % (cmd.get("bg_rgb_top")) > > # set the color > > cmd.set("bg_rgb_bottom", x) > > Cheers, > > -- Jason > > > On Fri, Sep 20, 2013 at 11:36 AM, Nils NN <N-...@gm...> wrote: > > > 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 |