That script ran perfectly for me. Is this HTML5 or Java that you are having
a problem with? Please download the latest at SourceForge (14.2.2) and see
if this is a bug that was fixed.


On Sun, Jul 20, 2014 at 3:06 PM, Romuald Poteau <
[email protected]> wrote:

> Dear Bob
> A few years ago, you helped me to write a script aiming at displaying the
> facetting of nanoclusters. Unfortunately, it no longer works under the 14.1
> versions of jmol and beyond.
> The line at which the error seems to happen is indicated in the script
> reported below.
> Your help would be appreciated, I am unable to understand the origin of
> this problem and to fix it by myself - if possible
> Regards
> Romuald
>
> Var atoms = {Ruthenium}
> Var n = atoms.length
> Var minDistance = 3.3 # perhaps
>
> for (Var i = 1; i <= n; i++) {
>   Var a = atoms[i]
>   for (Var j = i + 1; j <= n; j++) {
>     Var b = atoms[j]
> # THE ERROR SEEMS TO BE NEXT LINE, when I check the script, it returns
> "ERROR: invalid argument" and b.distance(a) is highlighted in red
>      if (b.distance(a) < minDistance) {
>        for (Var k = j + 1; k <= n; k++) {
>          Var c = atoms[k]
>          if (c.distance(a) < minDistance && c.distance(b) < minDistance) {
>             draw ID @{"d" + i + j + k} @a @b @c
>             color $@{"d" + i + j + k} grey translucent 0.2
>      }
>        }
>      }
>   }
> }
>
>
>
> ------------------------------------------------------------------------------
> Want fast and easy access to all the code in your enterprise? Index and
> search up to 200,000 lines of code with a free copy of Black Duck
> Code Sight - the same software that powers the world's largest code
> search on Ohloh, the Black Duck Open Hub! Try it now.
> http://p.sf.net/sfu/bds
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>


-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Department of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


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
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to