From: J. Rui Rodrigues (jrui_at_ci.uc.pt)
Date: Fri Jan 07 2005 - 10:49:57 CST

Hi,
Try this
$selection frame $i
$selection update
$ca_distance $selection

Rui Rodrigues

Ricardo Czekster wrote:

> Hi,
>
> If someone could help me: I was trying to modify the ca-distance.tcl
> script to analyze a trajectory. This script plots a 2d graphic that
> contains the ca distance. Then I wrote a script to iterate through the
> trajectory frames, and calls ca-distance to plot. The problem was that
> it seems to lack a graphics update, because, for 81 frames, this script
> built 81 2d plots containing the same image. It should plot a different
> one for each frame.
>
> The script I wrote was:
>
> # make the list of coordinates
> set num_frames [molinfo [$selection molindex] get numframes]
> set coords {}
> for {set i 0} {$i < $num_frames} {incr i} {
> $selection frame $i
> ca_distance $selection
> }
>
>
> Ricardo Melo
>
>