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


Reply via email to