Hi,

On 2003-02-26 14:54 Andreas wrote:
> 
> how to write the PovRay file out? (I do not want to embed PoyRay as the
> renderer.)

I also don't use povray directly as I like to edit the povray input
file.

I use the following script:

# make_pov.py                                                                   
                    
# do "run make_pov.py" within pymol, then "make_pov('povray.inp')" to           
                    
# create a file called povray.inp (or substitute another name, of               
                    
# course).                                                                      
                    
                                                                                
                    
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()                                                         
                    
                                                                                
                    
                           
Hope that helps,
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