Re: [PyMOL] Background colors in PyMOL 1.6

2013-09-20 Thread Jason Vertrees
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_b

Re: [PyMOL] Background colors in PyMOL 1.6

2013-09-20 Thread Nils NN
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 '4d', which seems to be the hex-value. However when I try to set the bg_rgb_top/bottom