From: Robert H. <ha...@st...> - 2009-10-11 17:33:18
|
x = "....." script @x On Sun, Oct 11, 2009 at 9:09 AM, I B <ir...@gm...> wrote: > Dear all, > > I can't find in documentation how to put some jmol script into variable, > so I can execute it on and off by the name of this varialble. > (similar to check box checked on and off only without creating any > checkbox). > > For example some variable X: > > X = jmolScript("select "+atomName +" ; color halo "+color+"; halo on; delay > 0.2; halo off; delay 0.2; halo on; delay 0.2; halo off; color atoms " + > color + ";"); > and then: > X on; > X off; > ..... > > Does anyone know how to perform this? > > Thanks, > Ira. > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Jmol-users mailing list > Jmo...@li... > 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 |