> I am in the process of rewriting some Chime pages to make use of Jmol. I
> have a couple of questions about the syntax of the Jmol commands.
>
>
>
> 1)       "spin" this seems to default to a rotation about the Y axis. Is
> there a way to change the rotation to the X or Z axis?

set spin x <degrees-per-second>

> 2)       Loop command: I understand this causes the entire script to
> repeat
> (after a delay). Is there a way to get only part of the script to loop?
> i.e.

No ... the loop command is compatible with the chime implementation ...
loops over entire file :-(

> I have a check box:
>
>
>
>            jmolCheckbox("spin off; reset; move 0 0 120 0 0 0 0 0 1; loop
> 1;", "reset; rotate X 90;  spin on", "Animation on/off");
>
>
>
>             the spin off and reset commands reorients the molecule to the
> correct position, then I want the move command to loop. Any ideas how to
> achieve this effect?

make a separate .txt file that contains your move command + loop.
Essentially this becomes a subroutine. Execute the script using the
'script' command

spin off; reset; script moveSubroutine.txt

--moveSubroutine.txt--
move 0 0 120 0 0 0 0 0 1
loop 0



Miguel



-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to