rspinney wrote: > >I'm not sure we are on the same wavelength. As an example, frame 20 is a >"key" frame where echo and message are changed. If the animation is >"playing" (i.e. using "animation direction +1; model resume;") the changes >(based on the frame number) are caught by animFrameCallback and passed to my >javascript function. However, when the animation is "stepped" through one >frame at a time (using "animation direction +1; model next;") the echo and >message never change. I assume this is because model next (or previous) does >not make a call to animFrameCallback. > > > model next and model prev make calls to animFrameCallback. If they do not, then it is a bug. We need a file, a script, and a Jmol version to check it out.
>My thoughts on this were that it should not matter how the user moves >through the animation sequence, either "playing" or "stepping", the results >should be the same. This would require animFrameCallback to pick up any >change of frame, so it can be caught and passed to an external function. I >tried testing this by using alert to display the current frame number, but >it always came back as 0. > > > animFrameCallback picks up any frame change whatsoever -- it is a misnomer. The real action is "frameChangeCallback" despite it's name, just as you suggest. > >Ahhh... There is a typo in the interactive scripting site on set picking >draw, which states it is the shift key to move a vertex. Thanks > > > ok. I've corrected that. Bob ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

