RE: [PyMOL] Can I use the mouse to control multiple windows?

2006-01-06 Thread Warren DeLano
NOTE: Bug fix for receive.py # BEGIN receive.py from pymol import cmd from time import sleep import os filename = "view.txt" while not sleep(0.2): if os.path.exists(filename): try: cmd.set_view(eval(open(filename,'r').read())) os.unlink(filename) exc

RE: [PyMOL] Can I use the mouse to control multiple windows?

2006-01-06 Thread Warren DeLano
Michael, Of course -- use ansynchrous Python threads to automate the process. For example: pymol test.pdb -l send.py & pymol test.pdb -l receive.py with the scripts below. Note use of the lowercase "L" option to launch PyMOL Python scripts in their own asynchronous thread. Cheers, Warren # BE

[PyMOL] Can I use the mouse to control multiple windows?

2006-01-06 Thread Michael George Lerner
Longshot, but .. I'm looking at a structure under two different sets of conditions, so I have two PyMOL windows open. I'm constantly get_view and set_view[*] to synchronize the two windows. Is there some way to set things up so that I can drag things around in one window and have the scene i

RE: [PyMOL] Python scripting for Pymol

2006-01-06 Thread Warren DeLano
Jerome, Try calling pymol.cmd.refresh() before pymol.cmd.png(name) Cheers, Warren -- Warren L. DeLano, Ph.D. Principal Scientist . DeLano Scientific LLC . 400 Oyster Point Blvd., Suite 213 . South San Francisco, CA 94080 USA . Biz:(650)-872-0942

RE: [PyMOL] how to extract corresponding residue pairs after alignment ?

2006-01-06 Thread Warren DeLano
Indaneel, This isn't and won't be possible anytime soon, but you are welcome to hack the C code in order to dump that information out for the time being. Eventually we will have some nice alignment management facilities in PyMOL. Cheers, Warren -- Warren L. DeLano, Ph.D. Pr

Re: [PyMOL] Python scripting for Pymol

2006-01-06 Thread gilleain torrance
Hi, I tried a similar, but simpler, example : def mol2png(name): cmd.png(name) cmd.delete(name) called as 'mol2png("1a2pA")', given that I have an object called "1a2pA" loaded. It works just fine on my laptop (mac). Odd. gilleain torrance On 1/6/06, Jerome PANSANEL wrote: > > Hi, >

[PyMOL] Python scripting for Pymol

2006-01-06 Thread Jerome PANSANEL
Hi, I writing a small script in python, in order to export png picture from a MDL sdfile. Here is a sample of the function : def mol2png(ctfile,name): pymol.cmd.read_molstr(ctfile,name) pymol.cmd.set("valence",1) pymol.cmd.color("black","elem c") pymol.cmd.color("red","elem o")

[PyMOL] Re: New spectral color pallette

2006-01-06 Thread divya dube
how can i get 300 dpi image or picture of higher resolution from pymol On 1/5/06, Robert Campbell wrote: > Alexander, > > * alexander.paut...@bc.boehringer-ingelheim.com wrote: > > > > > > I would like to color my protein according to B-factor with a > self-defined > > > spectral palette (In this