Hi Brenton,

you need PyMOL's movie making functionality to accomplish this.

# make 60 movie frames
mset 1x60

# begin camera view
mview store, 1

# end camera view
zoom resn PNM
mview store, 60

# save png images
viewport 2000, 1162
set ray_opaque_background, 0
set ray_trace_frames
mpng Image0001

Hope that helps.

Cheers,
  Thomas

On 04 Apr 2015, at 16:02, Brenton Horne <brentonho...@ymail.com> wrote:

> Hi,
> 
> I'd like to create a set of transparent PNG frames, with each frame being 
> more and more zoomed in on the PNM-ser62 complex found within the PDB 
> structure 1PWC. This is the code I have so far:
> set ray_opaque_background, 0
> 
>  
> png Image0001.
> png, width = 2000, height = 1162, dpi=500, ray=1
> 
>  
> python
> 
> for i in range(2,61)
> :
>     
> cmd.zoom(r. pnm, 20)
> 
>     
> cmd.png(r"Image{:04d}.png".format(i), width=2000, height=1162, dpi=500, ray=1)
> 
> python end
> 
> Running this just creates frame one (i.e., the one outside the python loop). 
> If you're wondering what made me think that this might work, well this was 
> based on a rotate-based animation script (the original script had 
> cmd.rotate('y',6) instead of cmd.zoom...) I have created based on input from 
> others on this mailing list. 
> 
> Thanks for your time,
> Brenton

-- 
Thomas Holder
PyMOL Principal Developer
Schrödinger, Inc.


------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
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