viscid.extools module

Call out to external tools like ffmpeg and meshlab

viscid.extools.make_animation(movie_fname, prefix, framerate=5, qscale=2, keep=False, args=None, frame_idx_fmt='_%06d', program='ffmpeg', yes=False)[source]

make animation by calling program (only ffmpeg works for now) using args, which is a namespace filled by the argparse options from add_animate_arguments. Plots are expected to be named ${args.prefix}_000001.png where the number is in order from 1 up

viscid.extools.meshlab_convert(fname, fmt='dae', quiet=True)[source]

Run meshlabserver to convert 3D mesh files

Uses MeshLab, which is a great little program for playing with 3D meshes. The best part is that OS X’s Preview can open the COLLADA (*.dae) format. How cool is that?

Parameters:
  • fname (str) – file to convert
  • fmt (str) – extension of result, defaults to COLLADA format
  • quiet (bool) – redirect output to os.devnull
Returns:

None