This is a read-only mirror of pymolwiki.org

Difference between revisions of "Mpng"

From PyMOL Wiki
Jump to navigation Jump to search
 
m
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
===DESCRIPTION===
 
===DESCRIPTION===
+
'''mpng''' writes a series of numbered movie frames to png files with the specified prefix.  If the '''[[ray_trace_frames]]''' variable is non-zero, these frames will be ray-traced.  This operation can take several hours for a long movie.
  "mpng" writes a series of numbered movie frames to png files with
+
 
  the specified prefix.  If the "ray_trace_frames" variable is
+
Be sure to disable '''[[cache_frames]]''' when issuing this operation on a long movie (>100 frames) to avoid running out of memory.
  non-zero, these frames will be ray-traced.  This operation can take
+
 
  several hours for a long movie.
 
 
  Be sure to disable "cache_frames" when issuing this operation on a
 
  long movie (>100 frames) to avoid running out of memory.
 
 
 
===USAGE===
 
===USAGE===
   
+
  mpng prefix [, first [, last]]
  mpng prefix [, first [, last]]
+
 
+
Options "first" and "last" can be used to specify an inclusive interval over which to render frames.  Thus, you can write a smart Python program that will automatically distribute rendering over a cluster of workstations.  If these options are left at zero, then the entire movie will be rendered.
  Options "first" and "last" can be used to specify an inclusive
+
 
  interval over which to render frames.  Thus, you can write a smart
 
  Python program that will automatically distribute rendering over a
 
  cluster of workstations.  If these options are left at zero, then
 
  the entire movie will be rendered.
 
 
 
===PYMOL API===
 
===PYMOL API===
<source lang="python">  
+
<source lang="python">
  cmd.mpng( string prefix, int first=0, int last=0 )  
+
cmd.mpng( string prefix, int first=0, int last=0 )  
</source>
+
</source>
  
[[Category:Commands|mpng]]
+
[[Category:Commands|Mpng]]

Revision as of 14:16, 20 June 2009

DESCRIPTION

mpng writes a series of numbered movie frames to png files with the specified prefix. If the ray_trace_frames variable is non-zero, these frames will be ray-traced. This operation can take several hours for a long movie.

Be sure to disable cache_frames when issuing this operation on a long movie (>100 frames) to avoid running out of memory.

USAGE

mpng prefix [, first [, last]]

Options "first" and "last" can be used to specify an inclusive interval over which to render frames. Thus, you can write a smart Python program that will automatically distribute rendering over a cluster of workstations. If these options are left at zero, then the entire movie will be rendered.

PYMOL API

cmd.mpng( string prefix, int first=0, int last=0 )