psico.moving

  1. 2011 Thomas Holder, MPI for Developmental Biology

License: BSD-2-Clause

Functions

closest_keyframe([quiet, _self])

Jump to the closest movie keyframe.

dump_mviews(*[, _self])

Dump the current movie as 'set_view' with 'mview store' commands.

frames2states(selection, specification, *[, ...])

Map specific object states to frames.

get_closest_keyframe(*[, _self])

Get the closest movie keyframe, or None if no keyframes defined.

get_keyframes([quiet, _self])

Get the list of camera keyframes for the current movie.

get_mdo_commands([quiet, _self])

Get the list of mdo commands.

matrix_to_ttt(names[, reverse, state, ...])

Objects can have state matrices and view (frames) matrices.

next_keyframe([quiet, _self])

Jump to the next movie keyframe.

prev_keyframe([quiet, _self])

Jump to the previous movie keyframe.

save_movie_mpeg1(filename[, mode, first, ...])

Save movie as MPEG1

psico.moving.closest_keyframe(quiet=1, *, _self=...)[source]

Jump to the closest movie keyframe.

psico.moving.dump_mviews(*, _self=...)[source]

Dump the current movie as ‘set_view’ with ‘mview store’ commands.

psico.moving.frames2states(selection, specification, *, _self=...)[source]

Map specific object states to frames. “specification” is a sequence of “frame:state” mappings.

Example

fetch 1d7q 1nmr, async=0 mset 1-20 # reverse state order just for 1nmr frames2states 1nmr, 1:20 20:1

psico.moving.get_closest_keyframe(*, _self=...)[source]

Get the closest movie keyframe, or None if no keyframes defined.

psico.moving.get_keyframes(quiet=1, *, _self=...)[source]

Get the list of camera keyframes for the current movie.

psico.moving.get_mdo_commands(quiet=1, *, _self=...)[source]

Get the list of mdo commands.

psico.moving.matrix_to_ttt(names, reverse=0, state=-1, quiet=1, *, _self=...)[source]

Objects can have state matrices and view (frames) matrices. This function takes the total matrix and stores it either as view matrix or as state matrix (reverse=1). For movie frames, movie_auto_store must be set.

psico.moving.next_keyframe(quiet=1, *, _self=...)[source]

Jump to the next movie keyframe.

psico.moving.prev_keyframe(quiet=1, *, _self=...)[source]

Jump to the previous movie keyframe.

psico.moving.save_movie_mpeg1(filename, mode='', first=0, last=0, preserve=0, fps=25, twopass=1, vbitrate=16000, quiet=1, exe='mencoder', *, _self=...)[source]

Save movie as MPEG1

This will not be the best quality possible for the file size, but we were successfull to play those movies in PowerPoint.

Requires mencoder executable from http://mplayerhq.hu

Arguments

filename = string: Filename, should end on ‘.mpeg’

mode = normal | draw | ray

first, last = integer: first and last frame number

preserve = 0 or 1: delete temporary images if 0 {default: 0}

fps = integer: frames per second {default: 25}

twopass = 0 or 1: two pass mode encoding (improves quality) {default: 1}

vbitrate = integer: average video bitrate {default: 16000} WARNING: 4-16000 (in kbit), 16001-24000000 (in bit)

See Also

cmd.movie.produce