Jaim wrote: > Take a look to http://bip.weizmann.ac.il/oca-docs/jmoltest/jmol3.html > > Now, lets say that I want to bring the attention of the user to a > residue that's at this very moment on the other side of the molecule: > TYR 97, Chain A, Model 1. It's colored red, part of a group of > three or four. > > You may see it by rotating the molecule with the mouse. > I would rather want to have a javascript call to start the rotation.
Yes. > As long as Jmol knows internally the coordinates and position for every > element, it should be possible for Jmol, by receiving the info on > "TYR 97, Chain A, Model 1", to rotate the model if needed and to > locate, in the center of the applet, the residue pointing to the user. > > Is there something like this available? Not currently > If not, can you add this command to Jmol? That sounds like a good idea. I have not thought of exactly this, but was thinking of a similar/related command called 'moveTo' that would move to a specific position, independent of where the molecule was sitting. Your idea is to extend this by allowing the position to be an atom/set of atoms. I cannot do this without some help from someone who has a strong mathematics background. I believe that calculating this involves computing an eigenvector to determine the axis of rotation, then calculating the degrees of rotation. It is essentially a great-circle-route calculation. Maybe there is another way to do it, but I really don't know. So, if someone can help me, I will be glad to do it. > Something like this can place the needed residue in the center > and zoom on it: > rotateTo 97 > zoom 200 understood. > Is there something like "blink 5" to have a residue to glow 5 > times to call the user's attention? experiment with 'set display selected' and see what that does. It will not blink, but you should be able to put in few 'delay' commands to achieve the effect that you want. Miguel ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ Jmol-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jmol-developers
