- alignStructs_withAllAlignPanels();
- // jmb.superposeStructures(ap.av.getAlignment(), -1, null);
+ if (jmb.viewer.isScriptExecuting())
+ {
+ javax.swing.SwingUtilities.invokeLater(this);
+ try
+ {
+ Thread.sleep(5);
+ } catch (InterruptedException q)
+ {
+ }
+ ;
+ return;
+ }
+ else
+ {
+ alignStructs_withAllAlignPanels();
+ }