Personal tools
You are here: Home Using MMTK MMTK example scripts Trajectory handling Trajectory animation
Document Actions

Trajectory animation

by Konrad Hinsen last modified 2007-02-23 12:36
view_trajectory.py
# This program will show an animation of the trajectory file given as
# an argument. Optional parameters indicate the configurations to be
# included (first, last, step).
#

from MMTK.Visualization import viewTrajectory

import string, sys

first, last, step = 0, None, 1
argc = len(sys.argv)
if argc > 2:
first = string.atoi(sys.argv[2])
if argc > 3:
last = string.atoi(sys.argv[3])
if argc > 4:
step = string.atoi(sys.argv[4])

viewTrajectory(sys.argv[1], first, last, step)

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: