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 <jason.vertr...@schrodinger.com> 
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...@gmx.ch> 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

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&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