From: Axel Kohlmeyer (akohlmey_at_gmail.com)
Date: Thu Apr 22 2010 - 10:11:05 CDT

On Thu, Apr 22, 2010 at 9:51 AM, Bjoern Olausson
<namdlist_at_googlemail.com> wrote:
> Hi VMD users,
>
> does anyone know if it is possible to color, lets say all waters, based on a
> time-frame range selection?
>
> I would like to color my waters like this:
> Frame 000-100: RED
> Frame 101-300: BLUE
> Frame 301-500: GREEN
>
> Is this possible?

yes.

set sel [atomselect top water]
for {set i 0} {$i < 101} {incr i} {
    $sel frame $i
    $sel user 0.0
}
for {set i 101} {$i < 301} {incr i} {
    $sel frame $i
    $sel user 1.0
}
for {set i 301} {$i < 501} {incr i} {
    $sel frame $i
    $sel user 2.0
}

then select User as coloring style
RBG as color scale, set 0.0 to 2.0 as
color range and activate the Update
color every step flag. e' voila!

cheers,
   axel.

>
> Kind regards
> Bjoern Olausson
>
> --
> Bjoern Olausson
> Martin-Luther-Universität Halle-Wittenberg
> Fachbereich Biochemie/Biotechnologie
> Kurt-Mothes-Str. 3
> 06120 Halle/Saale
>
> Phone: +49-345-55-24942
>

-- 
Dr. Axel Kohlmeyer    akohlmey_at_gmail.com
http://sites.google.com/site/akohlmey/
Institute for Computational Molecular Science
Temple University, Philadelphia PA, USA.