how can i get 300 dpi image or picture of higher resolution from pymol
On 1/5/06, Robert Campbell r...@post.queensu.ca 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
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)
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.
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
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
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)