Hi Ricardo,

you probably want to do this, without calling the ray command:

cmd.png("image.png", 640, 640, dpi=300, ray=1)

Also, your ray command sets antialias=300 and angle=-1, which I guess was not 
your intention. I'm not getting a segmentation fault with the latest SVN code 
using your command, though. Do you have any volume representation? Volume is 
not fully supported with ray tracing.

Cheers,
  Thomas

On 14 Jan 2014, at 13:36, Ricardo O. S. Soares <rsoa...@fcfrp.usp.br> wrote:

> Hello everyone,
> 
> I wrote a python script where pymol performs some color changes, ray tracing 
> and image export.
> The script works perfectly if I enable the GUI, however if I load pymol 
> without the GUI (-c flag) I receive a segmentation fault error.
> I found out that this issue is  resolved by commenting the line 
> "pymol.cmd.ray(640,640,300,-1)".
> I'd like to solve this, so the script can run in a loop without opening the 
> GUI every time.
> It may help to clarify that I'm running a LinuxMint14 machine (AMD64), with 
> GCC compiler version 4.7.2.
> 
> I appreciate any help.
> 
> Ricardo.
> ---
> Biological Chemistry and Physics
> Faculty of Pharmaceutical Sciences at Ribeirão Preto
> University of São Paulo - Brazil

-- 
Thomas Holder
PyMOL Developer


------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Reply via email to