Hi Michael
If the system is very big and causes the ray tracing to crash, try to lower the hash_max setting. I think the default is 100. If the setting is lower, it will be slower, but use less memory. (and vice versa :-) All the best Esben > -----Original Message----- > From: pymol-users-boun...@lists.sourceforge.net > [mailto:pymol-users-boun...@lists.sourceforge.net] On Behalf > Of DeLano Scientific > Sent: 25. oktober 2007 18:11 > To: 'Michael Lerner'; 'pymol mailinglist' > Subject: Re: [PyMOL] Trouble making pictures in a script > > Michael, > > The "-c" option forces PyMOL to run in command-line-only mode > which means it doesn't have access to the OpenGL hardware > (used by cmd.draw and interactive graphics). In > command-line-only mode, ray tracing (cmd.ray) is the only option. > > Cheers, > Warren > > > -----Original Message----- > > From: pymol-users-boun...@lists.sourceforge.net > > [mailto:pymol-users-boun...@lists.sourceforge.net] On Behalf Of > > Michael Lerner > > Sent: Thursday, October 25, 2007 8:31 AM > > To: pymol mailinglist > > Subject: [PyMOL] Trouble making pictures in a script > > > > Hi, > > > > I have a Python script that sets a system up and then calls > > cmd.png() to render an image. I use it to process several > files at a > > time, and there's no need to look at it while it's working, so I use > > > > pymol -qcr myscript.py > > > > to launch it. It works fine when I ray trace things, but if > I just set > > the system up and call cmd.png(), I get this error: > > > > ScenePNG-WARNING: invalid context or no image. > > > > Calling cmd.draw() instead of cmd.ray() doesn't seem to fix things. > > Any ideas? Some of the systems are big enough that > cmd.ray() fails, so > > I'd like to be able to find a workaround. > > > > Thanks, > > > > -michael > > > > -- > > Biophysics Graduate Student > > Carlson Lab, University of Michigan > > http://www.umich.edu/~mlerner > > > > -------------------------------------------------------------- > > ----------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a > > browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > PyMOL-users mailing list > > PyMOL-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/pymol-users > > > -------------------------------------------------------------- > ----------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and > a browser. > Download your FREE copy of Splunk now >> > http://get.splunk.com/ _______________________________________________ > PyMOL-users mailing list > PyMOL-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pymol-users >