"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "modules/pymol/moving.py" between
pymol-v1.8.6.0.tar.bz2 and pymol-v2.1.0.tar.bz2

About: PyMOL is a Python-enhanced molecular graphics tool. It excels at 3D visualization of proteins, small molecules, density, surfaces, and trajectories. It also includes molecular editing, ray tracing, and movies. Open Source version.

moving.py  (pymol-v1.8.6.0.tar.bz2):moving.py  (pymol-v2.1.0.tar.bz2)
skipping to change at line 194 skipping to change at line 194
first = int: frame number or 0 for current frame {default: 0} first = int: frame number or 0 for current frame {default: 0}
power = float: slow down animation at keyframe (0.0) or not (1.0) power = float: slow down animation at keyframe (0.0) or not (1.0)
{default: 0.0} {default: 0.0}
object = str: name of object for object keyframes, or empty for object = str: name of object for object keyframes, or empty for
global (camera) keyframes {default: } global (camera) keyframes {default: }
scene = str: name of scene to store scene with key frame {default: } scene = str: name of scene to store scene with key frame {default: }
cut = float 0.0-1.0: scene switch moment (0.0: beginning of transition,
1.0: end of transition) {default: 0.5}
auto = -1/0/1: if freeze=0, then auto reinterpolate after store, clear,
or toggle {default: -1 = use movie_auto_interpolate}
state = int: if > 0, then store object state {default: 0} state = int: if > 0, then store object state {default: 0}
freeze = 0/1: never auto reinterpolate {default: 0}
SEE ALSO SEE ALSO
mplay, mset, mdo, mclear, mmatrix mplay, mset, mdo, mclear, mmatrix
''' '''
r = DEFAULT_ERROR r = DEFAULT_ERROR
first = int(first) first = int(first)
last = int(last) last = int(last)
auto = int(auto) auto = int(auto)
freeze = int(freeze) freeze = int(freeze)
skipping to change at line 369 skipping to change at line 377
mode=-1, quiet=1, mode=-1, quiet=1,
width=0, height=0, width=0, height=0,
_self=cmd): _self=cmd):
''' '''
DESCRIPTION DESCRIPTION
"mpng" writes movie frames as a series of numbered png files. "mpng" writes movie frames as a series of numbered png files.
USAGE USAGE
mpng prefix [, first [, last ]] mpng prefix [, first [, last [, preserve [, modal [, mode [, quiet
[, width [, height ]]]]]]]]
ARGUMENTS ARGUMENTS
prefix = string: filename prefix for saved images -- output files prefix = string: filename prefix for saved images -- output files
will be numbered and end in ".png" will be numbered and end in ".png"
first = integer: starting frame {default: 0 (first frame)} first = integer: starting frame {default: 0 (first frame)}
last = integer: last frame {default: 0 (last frame)} last = integer: last frame {default: 0 (last frame)}
preserve = 0/1: Only write non-existing files {default: 0}
modal = integer: will frames be rendered with a modal draw loop modal = integer: will frames be rendered with a modal draw loop
mode = int: 2=ray, 1=draw, 0=normal {default: -1, check
ray_trace_frames or draw_frames}
width = int: width in pixels {default: current viewport}
height = int: height in pixels {default: current viewport}
NOTES NOTES
If the "ray_trace_frames" variable is non-zero, then the frames If the "ray_trace_frames" variable is non-zero, then the frames
will be ray-traced. Note that this can take many hours for a long will be ray-traced. Note that this can take many hours for a long
movie with complex content displayed. movie with complex content displayed.
Also, be sure to avoid setting "cache_frames" when rendering a Also, be sure to avoid setting "cache_frames" when rendering a
long movie to avoid running out of memory. long movie to avoid running out of memory.
Arguments "first" and "last" can be used to specify an inclusive Arguments "first" and "last" can be used to specify an inclusive
skipping to change at line 414 skipping to change at line 432
''' '''
r = DEFAULT_ERROR r = DEFAULT_ERROR
args = (prefix, int(first) - 1, int(last) - 1, args = (prefix, int(first) - 1, int(last) - 1,
int(preserve), int(modal), -1, int(mode), int(quiet), int(preserve), int(modal), -1, int(mode), int(quiet),
int(width), int(height)) int(width), int(height))
if thread.get_ident() ==pymol.glutThread: if thread.get_ident() ==pymol.glutThread:
r = _self._mpng(*args) r = _self._mpng(*args)
else: else:
r = _self.do('cmd._mpng(*%s, _self=cmd)' % repr(args), 0) r = _self.do('cmd._mpng(*%s)' % repr(args), 0)
if _self._raising(r,_self): raise pymol.CmdException if _self._raising(r,_self): raise pymol.CmdException
return r return r
def mclear(_self=cmd): def mclear(_self=cmd):
''' '''
DESCRIPTION DESCRIPTION
"mclear" clears the movie frame image cache. "mclear" clears the movie frame image cache.
USAGE USAGE
 End of changes. 6 change blocks. 
2 lines changed or deleted 20 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)