João,

I'm not sure why this is giving you problems. Why do you have
renderer=2? Why not the default? Are you counting primitives? If so, I
suggest:

cmd.set("ray_default_renderer", 2)

# snapshot

cmd.png(myFile, width=w, height=h, dpi=d, ray=0)

# this will ray trace

cmd.png(myFile, width=w, height=h, dpi=d, ray=1)

Cheers,

-- Jason


On Tue, Apr 17, 2012 at 1:21 PM, João Rodrigues <anar...@gmail.com> wrote:
> Same result Jason, i also tried =false...
>
> No dia 17 de Abr de 2012 20:45, "Jason Vertrees"
> <jason.vertr...@schrodinger.com> escreveu:
>
>> Hi João,
>>
>> What about
>>
>> cmd.png(default_name+'.png', dpi=300, ray=0)
>>
>> Cheers,
>>
>> -- Jason
>>
>>
>> On Tue, Apr 17, 2012 at 11:18 AM, João Rodrigues <anar...@gmail.com>
>> wrote:
>> > Hello all,
>> >
>> > I'm using Pymol v1.5 (from fink, so open source version) to trace large
>> > scene that I have. To that end, I'm avoiding having PyMOL open and I
>> > wrote a
>> > small python script to do the rendering for me. All goes well, except
>> > this
>> > last part (don't mind the obvious variable names):
>> >
>> >> cmd.ray(width, height, renderer=2)
>> >> cmd.png(default_name+'.png', dpi=300, ray=False)
>> >
>> >
>> > This actually renders my scene twice. I've tried cmd.do and it does the
>> > same.. am I missing something or is this not supposed to happen?
>> >
>> > Thanks and cheers,
>> >
>> > João [...] Rodrigues
>> > http://nmr.chem.uu.nl/~joao
>> >
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > Better than sec? Nothing is better than sec when it comes to
>> > monitoring Big Data applications. Try Boundary one-second
>> > resolution app monitoring today. Free.
>> > http://p.sf.net/sfu/Boundary-dev2dev
>> > _______________________________________________
>> > 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
>>
>>
>>
>> --
>> Jason Vertrees, PhD
>> PyMOL Product Manager
>> Schrödinger, LLC
>>
>> (e) jason.vertr...@schrodinger.com
>> (o) +1 (603) 374-7120



-- 
Jason Vertrees, PhD
PyMOL Product Manager
Schrödinger, LLC

(e) jason.vertr...@schrodinger.com
(o) +1 (603) 374-7120

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
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