OK, I see the problem. The 'frame' command only affects display ... it does *not* affect selected sets.
So, each call to 'select atomno=10; color atoms green' is affecting atom number 10 in all the frames. You can explicitly select atoms in particular frames by using the 'model' syntax. Try this: color atoms cpk; select atomno=10; color atoms red; select atomno=10 and model>=6; color atoms green animation mode loop; animation fps 3; # ? does this work ? animation on; Miguel > Miguel & Bob, > For a simple animation in which the display is started by the animation > on command at the end of the script parameter, earlier frame # > statements concerning structure attributes are ignored, save for the > last in the script. For example: > [param name="script" value="color atoms cpk; frame 1; select > atomno=10; color atoms red; frame 6; select atomno=10; color atoms > green; animation mode loop; animation fps 3; animation on" /] results > in atomno=10 being green throughout the animation. > I haven't tried frame callbacks. Would this provide a smooth animation? Avoid the frame callbacks if you can. > Also, I am not using javascript in such animations. good. Miguel ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Jmol-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jmol-users

