rspinney wrote:
>I have a couple of questions for Bob. (I am using 11.1.44.)
>
>1) I am not clear if frame (or model) next or previous make a call to
>animFrameCallback. I have a jmolSetCallback linked to animFrameCallback, and
>it works fine for model play, pause and resume (which will execute a script
>dependent on the model number) but it does not work when model next is used.
>The display moves to the next model, but the scripts are never called.
>Should model next (or previous) call animFrameCallback?
>
>
>
I'm not observing this problem -- next and prev go through precisely the
same operations, and the callback doesn't come from them. (It's actually
a "frame change callback" that has nothing really to do specifically
with "animation.") So I'd be surprised if this is the case. Note that if
you are at the end of the range and you issue a frame change that does
not have any effect, no callback is made.
>2) Did you implement the change to animFrameCallback "isrunning" to indicate
>the direct the animation is playing (i.e. values of -1 running backwards, 0
>for stopped, and 1 for running forwards)?
>
>
>
I have checked in changes for 11.1.45 that add two more parameters to
the frame callback:
function animFrameCallback(frameNo, fileNo, modelNo, firstNo, lastNo,
isAnimationRunning, animationDirection, currentDirection)
animationDirection is what changes with "animation direction -1" or
"animation direction +1"
currentDirection is what changes with "anim playrev" and when the
animation starts going backward in "anim mode palindrome"
so the PRODUCT of these two numbers indicates the "true" direction of
the animation.
Note that firstNo and lastNo are numbers that encode the file and model
as "file*100+model"
>3) There is still a bug with set picking draw. If you shift-left-click on a
>vertex of the arrow to move it, the entire arrow moves rather than the one
>vertex.
>
>
>
That's not a bug. "SHIFT" does just that -- shifts the arrow around;
"ALT" does the altering of the shape. So use alt-left-click if you want
to alter the shape of the arrow.
Bob
>Thanks, Rick
>
>
>
>-
>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
>Jmol-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
-
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
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users