frame number is _modelNumber. So for that you say:

set echo top left
echo  This is model %{_modelNumber}.

That will automatically update on its own.
Displaying the current file name will require a macro.
But here's an interesting trick: You can now set the callbacks to be
to Jmol scripts instead of JavaScript. So frame changes and such could
drive some .spt file you have, and that should get you just about 
anything you want.

To do that, just use

animFrameCallback = script: ....

or

animFrameCallback = script: script myscript.spt

(That's a colon after "script")

Here's the list of special variables we have so far:

_atomhovered
_atompicked
_currentmodelnumberinfile
_currentfilenumber
_height
_memory
_modelnumber
_modelname
_spinning
_version
_width

Filename is not there because we actually don't keep track of that.


Timothy Driscoll wrote:

>I would like to display pdb file name and frame number using an echo  
>command.  is there a way to access this info, akin to displaying  
>residue names, etc.?
>
>alternatively, I know this info before writing my script - is there a  
>way to link an echo command to a particular frame?  in other words,  
>have the echo display only when that frame is visible?
>
>
>if it matters, I am loading multiple files using:
>
>load files "file1" "file2" ...
>
>
>  
>
good...

>thanks!
>
>tim
>  
>


-------------------------------------------------------------------------
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

Reply via email to