From: Alexander A. Vakhrushev (makaveli.lcf_at_gmail.com)
Date: Fri Sep 26 2008 - 22:41:50 CDT

Hi Qian!

Try to add after frame selection command

    # get the protein atoms
    set sel [atomselect $index "protein"]
    $sel frame $name

following line, updating your selection

    $sel update

2008/9/27, qwang_at_mail.uh.edu <qwang_at_mail.uh.edu>:
> Hi,
>
> I am using the script (sscache.tcl) to compute the secondary structures of a
> protein in a trajectory. I follow the instructions from
> http://www.ks.uiuc.edu/Research/vmd/script_library/scripts/sscache/sscache.tcl.
>
> I wrote a tcl script as an attached and tried to execute it on a trajectory,
> but it only showed the results of the last frame. I tried my script using
> different modules (functions) but it looped correctly, so I am quite sure
> that I have been including the loop correctly.
>
> Could you please help me take a look at this script and see if there is
> something that I could have overlooked?
>
> Thank you.
> Sincerely,
> Qian
>
>
>

-- 
Best regards,
Dr. Alexander Vakhrushev
Institute of Applied Mechanics
Dep. of Mech. and Phys.-Chem.
of heterogeneous media
UB of Russian Academy of Sciences
34 T. Baramzinoy St.
Izhevsk, Russia 426067
----------------------------------
С уважением,
    Вахрушев Александр Александрович
к.ф.-м.н., с.н.с.
Институт прикладной механики
Уральского Отделения
Российской Академии Наук
426067, г. Ижевск
ул. Т. Барамзиной 34
+7(3412)21-45-83