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
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
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
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
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
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,
>
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")
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