De: "Richard Spinney" <[EMAIL PROTECTED]>
>
>Hi Nicolas,
>
>Thanks for the info on the spin command. I tried your idea about a separate
>script:
>
>var script1 ="move 0 0 51.43 0 0 0 0 0 1; loop 1;"
>jmolCheckbox("spin off; reset; script1",
>             "reset; rotate X 90;  spin on", 
>             "Animation on/off");
>
>But this does not work, I get a message of "command expected : script1". Is
>it just a syntax error on my part?

You have to create a separate file the script. For example, create a text file 
name script1.txt with the content:
move 0 0 51.43 0 0 0 0 0 1; loop 1;

then in your page :
jmolCheckbox("spin off; reset; script script1.txt",
             "reset; rotate X 90;  spin on", 
             "Animation on/off");

It should work I think.

Nicolas



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