Oooops....

 I <r...@post.queensu.ca> [2003-02-05 11:42] wrote:
> 
> I typically use the following script (I call it make_pov.py) and
> "run" it from pymol once to load the function, and then I do
> "make_pov('povray.inp')" to create the povray.inp file.

But of course I forgot to include the script, which is very short:

# make_pov.py
# Do "run make_pov.py" from within pymol and then execute the script
# with "make_pov('povray.inp')" to create the povray.inp file.
# 
from pymol import cmd

def make_pov(file):
        (header,data) = cmd.get_povray()
        povfile=open(file,'w')
        povfile.write(header)
        povfile.write(data)
        povfile.close()


Cheers,
Robert
-- 
Robert L. Campbell, Ph.D.                         <r...@post.queensu.ca>
Senior Research Associate                            phone: 613-533-6821
Dept. of Biochemistry, Queen's University,             fax: 613-633-2497
Kingston, ON K7L 3N6  Canada
    PGP Fingerprint: 9B49 3D3F A489 05DC B35C  8E33 F238 A8F5 F635 C0E2
         (out of date web site:http://biophysics.med.jhmi.edu/rlc)

Reply via email to