within Jmol:

script APPLET * "background red"

applies the script to all applets. So from JavaScript:

jmolScript('script APPLET * "background red" ')

or, if this is in a file:

jmolScript('script APPLET * "script myfile.spt" ')

or if you need quotes for that filename....

jmolScript('script APPLET * \'script "myfile.spt" \' ')

On Fri, Dec 4, 2009 at 10:07 AM, Brian Moldover <[email protected]> wrote:

>  Hi all,
>
>
>
> Is there a way to load a long rasmol-type script so that it can be applied
> to multiple applets? I have a number of atom colorations for each model, and
> in the script I use restrict */n and then the atom colors, cycling  (n)
> through each model. I’m using jmolapplet(“load MODELS ({}) “filename.pdb”).
>
>
>
> -          Brian
>
>
> ------------------------------------------------------------------------------
> Join us December 9, 2009 for the Red Hat Virtual Experience,
> a free event focused on virtualization and cloud computing.
> Attend in-depth sessions from your desk. Your couch. Anywhere.
> http://p.sf.net/sfu/redhat-sfdev2dev
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>


-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


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
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to