Re: [PyMOL] Background colors in PyMOL 1.6

2013-10-02 Thread Thomas Holder
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:
 PyMOLset bg_gradient, 1
 PyMOLget bg_rgb_top
 - this returns '4d', 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=60134791iu=/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


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:
PyMOLset bg_gradient, 1
PyMOLget bg_rgb_top
- this returns '4d', 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
  
 

Gesendet: Donnerstag, 19. September 2013 um 17:39 Uhr
Von: Jason Vertrees jason.vertr...@schrodinger.com
An: Nils NN n...@gmx.ch
Cc: pymol-users@lists.sourceforge.net pymol-users@lists.sourceforge.net
Betreff: Re: [PyMOL] Background colors in PyMOL 1.6

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=58041151iu=/4140/ostg.clktrk[http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk]
___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.net[PyMOL-users@lists.sourceforge.net])
Info Page: 
https://lists.sourceforge.net/lists/listinfo/pymol-users[https://lists.sourceforge.net/lists/listinfo/pymol-users]
Archives: 
http://www.mail-archive.com/pymol-users@lists.sourceforge.net[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[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=58041151iu=/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

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_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:
 PyMOLset bg_gradient, 1
 PyMOLget bg_rgb_top
 - this returns '4d', 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



 Gesendet: Donnerstag, 19. September 2013 um 17:39 Uhr
 Von: Jason Vertrees jason.vertr...@schrodinger.com
 An: Nils NN n...@gmx.ch
 Cc: pymol-users@lists.sourceforge.net pymol-users@lists.sourceforge.net
 
 Betreff: Re: [PyMOL] Background colors in PyMOL 1.6

 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=58041151iu=/4140/ostg.clktrk[http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk]
 ___
 PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net[
 PyMOL-users@lists.sourceforge.net])
 Info Page:
 https://lists.sourceforge.net/lists/listinfo/pymol-users[https://lists.sourceforge.net/lists/listinfo/pymol-users]
 Archives:
 http://www.mail-archive.com/pymol-users@lists.sourceforge.net[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[jason.vertr...@schrodinger.com]
 (o) +1 (603) 374-7120




-- 
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=58041151iu=/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

Re: [PyMOL] Background colors in PyMOL 1.6

2013-09-19 Thread Jason Vertrees
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=58041151iu=/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=58041151iu=/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