Hi John,
It's what we're here for. If we care not to be bothered, we can unsubscribe.
Anyway, you have to raytrace the image if you don't have an OpenGL
window. Add cmd.ray(xresolution,yresolution) before, or add it to the
cmd.png command directly.
Cheers,
Tsjerk
On Fri, Feb 18, 2011 at 8:46 AM
I'm sorry to bother this mailing list so much but it
seems that I cannot save images.
This is the script examply.py
from pymol import cmd
cmd.load(sys.argv[1])
cmd.hide()
cmd.show("spheres")
cmd.set('sphere_scale',0.3)
cmd.set('orthoscopic',1)
cmd.png("printme
Thank you,
this indeed solves the problem! Now everything seems to work smoothely.
I also set an alias to mypymol="pyplot -r script.py -- " so now
everything is
very simple.
Thanks to all for the help.
John
On 02/17/2011 07:30 PM, David Hall wrote:
> No idea if this will fix your problem,
No idea if this will fix your problem, but what I've found is portable
across binaries from Delano Scientific/Schroedinger and
OS/self-compiled versions of pymol is to instead run:
pymol -r examply.py -- mymolecule.xyz
(or if I'm making pngs, usually pymol -qrck examply.py -- mymolecule.xyz )
Th
Hi John, Folmer,
First, in reply to Folmer's comment, it did cross my mind whether it
was necessary to call Pymol from a script, rather than the reverse.
But John gave an example with the file to load as command line
argument (./examply.py mymolecule.xyz). If the filename is required
internally in
Dear John
2011/2/17 John Russo :
> Hi,
> I'm sorry for making such beginner's questions but searching the manual,
> google
> or the wiki didn't help me.
>
You're welcome to ask here.
> I know how to extend pymol by writing python functions (through the
> extend command).
> But is it possible to
Thanks, that is what I was looking for! I just made a simple
script out of it which looks like this
#!/usr/bin/env python
import pymol
from pymol import cmd
import mymodule
pymol.finish_launching()
cmd.load("mymolecule.xyz")
cmd.hide()
cmd.show("spheres")
mymodule.dosomething()
I've noticed s