Hi Balaji,
The temporary povray file is written to the working directory. However, you
may want to use the attached script instead. This will write your scene in
two parts, a .pov file containing all meta data, such as the lights, camera
and #defaults, and an include file (.inc) which contains the structure. In
this way you have maximum control over your scene without having to edit a
huge povray file. You may even want to consider splitting your scene up in
separate parts (taken from the same perspective), which you combine in a
global .pov file using #include statements. This will give even more control
with regards to modifications to the scene.
The magic word in pymol (after run make_pov.py) is make_pov
NB. the .pov file contains a commented statement with regards to a povray
script, which allows transforming scenes and objects from model space to
camera space and vice versa. If you want, you can get a copy of that script.
Good luck!
Tsjerk
On 1/24/06, Bhyravbhatla, Balaji <[email protected]> wrote:
>
> Hello All,
> I am trying to render a large mega Dalton complex and can get it up on
> the screen but rendering it causes a crash because of memory issues (I
> have 1Gb on the system and tried on a 2Gb system also). So what I would
> like is to get the temp pov ray files that Pymol is writing out and use
> those with PoVRAY.
> I am unable to find the location of those files. Can you please point me
> to where they are written?
>
> If anyone also has ideas on how to get a decent publication quality
> output for a complex (think in terms of viruses) that would be helpful.
> I do have a session file saved with my views.
>
> Thanks
>
> Balaji
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642
> _______________________________________________
> PyMOL-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pymol-users
>
--
Tsjerk A. Wassenaar, M.Sc.
Groningen Biomolecular Sciences and Biotechnology Institute (GBB)
Dept. of Biophysical Chemistry
University of Groningen
Nijenborgh 4
9747AG Groningen, The Netherlands
+31 50 363 4336
# 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, meta=True):
f1, f2 = file, file[:-4] + '.inc'
(header,data) = cmd.get_povray()
povfile = open(f1,'w')
if meta: povfile.write(header)
povview = cmd.get_view()
povfile.write("""\n
// Uncomment the following lines if you have the pymolmacro.inc include file
and want to use it.
/*
#include \"pymolmacro.inc\"
PYMOL_VIEW( %10.5f, %10.5f, %10.5f,
%10.5f, %10.5f, %10.5f,
%10.5f, %10.5f, %10.5f,
%10.5f, %10.5f, %10.5f,
%10.5f, %10.5f, %10.5f,
%10.5f, %10.5f, %10.5f )
*/
""" % povview)
povfile.write('#include "%s"\n\n' % f2)
povfile.close()
povfile = open(f2,'w')
povfile.write(data)
povfile.close()
cmd.extend('make_pov',make_pov)