Hi,
You may need to use the API instead of the command.
cmd.png("C:\Users\Brenton\Documents\Chem Structures\PDBs\2\2HYY - 
imatinib\PyMOL movie\Image{}.png".format(str(i).zfill(4)), dpi=300, ray=1)

Matt Baumgartner

On 01/06/2015 10:01 AM, Brenton Horne wrote:
> Hi
>
> I received this error from your modified code:
>
> png "C:\Users\Brenton\Documents\Chem Structures\PDBs\2\2HYY - 
> imatinib\PyMOL movie\Image{}.png".format(str(i).zfill(4)), dpi=300, ray=1
>
>  Ray: render time: 8.97 sec. = 401.4 frames/hour (1278.57 sec. accum.).
>
>  ScenePNG-Error: error writing ""C:\Users\Brenton\Documents\Chem 
> Structures\PDBs\2\2HYY - imatinib\PyMOL 
> movie\Image{}.png".format(str(i).zfill(4)).png"! Please check 
> directory...
>
> Thanks for your time,
> Brenton
>
> On 7/01/2015 12:33 AM, Matthew Baumgartner wrote:
>> The problem that you have is not a PyMOL problem, but a bug in your 
>> code. You didn't change the file name to include the index.
>>
>> Replace the png command with this:
>>
>> png "C:\Users\Brenton\Documents\Chem Structures\PDBs\2\2HYY - 
>> imatinib\PyMOL movie\Image{}.png".format(str(i).zfill(4)), dpi=300, 
>> ray=1
>>
>>
>> HTH,
>> Matt Baumgartner
>>
>>
>> On 01/06/2015 09:00 AM, Brenton Horne 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
>>
>>
>


------------------------------------------------------------------------------
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