Sorry,

I didn't read the other entries. Thanks for the "python end" code. I have
had this problem with loops a lot in pymol and this solves it.

-Yarrow

On Tue, Jan 6, 2015 at 9:21 AM, Yarrow Madrona <acacia.madr...@ucsf.edu>
wrote:

> Hi Brenton,
>
> I'm pretty sure you have to import python in your script. Otherwise the
> python commands will be ignored. Also you forgot to put colons after your
> 'for' statement. Either way, I think pymol got the first image then ignored
> the 'for statement' and just went straight to the second 'png.....' which
> it named %4d because you didn't tell it to recognize python string
> formatting by importing python.
>
> -Yarrow
>
> On Tue, Jan 6, 2015 at 6:00 AM, Brenton Horne <brentonho...@ymail.com>
> wrote:
>
>> Hi,
>>
>> I've been executing the pml script I wrote:
>>
>> set ray_opaque_background, 0
>>
>> png C:\Users\Brenton\Documents\Chem Structures\PDBs\2\2HYY -
>> imatinib\PyMOL movie\Image0001.png, dpi=300, ray=1
>>
>> for i in range(2, 60)
>>
>>      rotate y, 6
>>
>>      png C:\Users\Brenton\Documents\Chem Structures\PDBs\2\2HYY -
>> imatinib\PyMOL movie\Image%4d.png, dpi=300, ray=1
>>
>>
>> The desired result from this script is a series of 60 transparent pngs
>> taken at 6 degrees apart (rotated around the y axis) with name
>> Image0001.png, Image0002.png, Image0003.png, ..., Image0060.png. Sadly
>> however I only got two PNGs: Image0001.png and Image%4d.png. How do I
>> overcome this problem?
>>
>> Thanks for your time,
>> Brenton
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Dive into the World of Parallel Programming! The Go Parallel Website,
>> sponsored by Intel and developed in partnership with Slashdot Media, is
>> your
>> hub for all things parallel software development, from weekly thought
>> leadership blogs to news, videos, case studies, tutorials and more. Take a
>> look and join the conversation now. http://goparallel.sourceforge.net
>> _______________________________________________
>> 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
>>
>
>
>
> --
> Yarrow Madrona, Ph.D.
> *Postdoctoral Scholar*
> University of California, San Francisco
> Department of Pharmaceutical Chemistry
> Rm N551, 600 16th street
> San Francisco CA, 94143
>



-- 
Yarrow Madrona, Ph.D.
*Postdoctoral Scholar*
University of California, San Francisco
Department of Pharmaceutical Chemistry
Rm N551, 600 16th street
San Francisco CA, 94143
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
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