I want to use jmolRadio to control some signal variable of my own, that is when it is selected, the signal variable will be set or reset, how can I do this?
The code I wrote is like this:
var script = "load 1dwd.pdb; ......";
var model = "radio 1";
var signal = "on";
jmolRadio(script+"signal = 'off';", model, false, "  ");
What I thought is that when jmolRadio is selected, the script, that is the first parameter of jmolRadio function will be executed, so I add my own script: "signal = 'off'", hoping my own script will be executed, but actually, my own script has not been executed.
Does Jmol allow users to execute their own scripts? If so, how can I do it?
Please help me, thanks very much!
Zengming Zhang ，nicegiving@...
> var script = "load 1dwd.pdb; ......";
> var model = "radio 1";
> var signal = "on";
Alternatively (depending on what you want to do and how you want to
control the value of your "signal"), you could use JmolScript instead
Get latest updates about Open Source Projects, Conferences and News.