Hi Bob, I noticed a context-sensitive problem of the script parser with the '..' notation to access multi-level data structures in Jmol 14.5.1_2015_12_16 (also tested in 14.4.0_2015_10_14).
The following command in itself doesn't provoke an error message: networkDef..renderings = [default: [size: defaultRendering..size, subTypeSpecific: {}]]; But in the context of the following function (minimized to the essential commands to reproduce the problem) there appears an error message: ----- Function ---------------- function parseNetworkDefinitions(networkDefs) { var networkTypes = networkDefs.keys; for (var networkType in networkTypes) { var networkDef = networkDefs[networkType]; if (networkDef..edgeType == "") { } networkDef..renderings = [default: [size: defaultRendering..size, subTypeSpecific: {}]]; } } ----- Error message ----------- script compiler ERROR: unexpected end of script command ---- <<<< ------------------------------- The error message disappears when the 'if' clause before the command is removed (Variant 1) or when the '..' notation is changed (Variant 2): ----- Variant 1 ---------------- function parseNetworkDefinitions(networkDefs) { var networkTypes = networkDefs.keys; for (var networkType in networkTypes) { var networkDef = networkDefs[networkType]; networkDef..renderings = [default: [size: defaultRendering..size, subTypeSpecific: {}]]; } } ----- Variant 2 ---------------- function parseNetworkDefinitions(networkDefs) { var networkTypes = networkDefs.keys; for (var networkType in networkTypes) { var networkDef = networkDefs[networkType]; if (networkDef..edgeType == "") { } networkDef["renderings"] = [default: [size: defaultRendering..size, subTypeSpecific: {}]]; } } ------------------------------- Regards, Rolf -- Rolf Huehne Postdoc Leibniz Institute on Aging - Fritz Lipmann Institute (FLI) Beutenbergstrasse 11 07745 Jena, Germany Phone: +49 3641 65 6205 Fax: +49 3641 65 6210 E-Mail: rhue...@leibniz-fli.de Website: http://www.leibniz-fli.de Scientific Director: Prof. Dr. K. Lenhard Rudolph Head of Administration: Dr. Daniele Barthel Chairman of Board of Trustees: Burkhard Zinner VAT No: DE 153 925 464 Register of Associations: No. 230296, Amtsgericht Jena Tax Number: 162/141/08228 ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 _______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users