private String jmolScript(String script)
{
Cache.log.debug(">>Jmol>> " + script);
- String s = jmolViewer.scriptWait(script);
+ String s = jmolViewer.evalStringQuiet(script); // scriptWait(script); BH
Cache.log.debug("<<Jmol<< " + s);
return s;
modelFileNames = null;
boolean notifyLoaded = false;
String[] modelfilenames = getStructureFiles();
+ if (modelfilenames == null)
+ {
+ // Jmol is still loading files!
+ return;
+ }
// first check if we've lost any structures
if (oldmodels != null && oldmodels.length > 0)
{