[PyMOL] Problems setting bg_rgb_top / bg_rgb_bottom

2014-10-08 Thread James Davidson
Dear All, I wonder if anyone can help with this issue? I am currently using pymol 1.7.0.2 (based on SVN rev. 4087). Enabling gradient backgrounds works fine (as in previous versions) - however, when I try to change the gradient colours by setting bg_rgb_top / bg_rgb_bottom I see errors. For

Re: [PyMOL] Problems setting bg_rgb_top / bg_rgb_bottom

2014-10-08 Thread Tsjerk Wassenaar
Hi James, Can you try: cmd.set(bg_rgb_bottom,cmd.get_color_tuple(bottom)) The number refers to a color index, so that should probably work. Hope it helps, Tsjerk On Wed, Oct 8, 2014 at 9:27 AM, James Davidson j.david...@vernalis.com wrote: Dear All, I wonder if anyone can help with

Re: [PyMOL] Problems setting bg_rgb_top / bg_rgb_bottom

2014-10-08 Thread Thomas Holder
Hi James, this was fixed in SVN rev 4094. So you may try the latest code from SVN, or apply the fix to your 1.7.0.2 code base. It's the first junk in this patch: http://sourceforge.net/p/pymol/code/4094/tree//trunk/pymol/layer1/Setting.cpp?diff=50c0fc56e88f3d0bdf694277:4093 Cheers, Thomas