Re: [Jmol-users] Nested integer arrays

2009-12-05 Thread Robert Hanson
William, Yes, that's right. Nested arrays are not supported in Jmol. The only nested arrays you can do are specifically 3x3 and 4x4 matrices, which have their own special data types. But arrays of points are supported, so the simple fix here is to use $ x = [{111,222,0},{333,444,0}] $ print x[1]

[Jmol-users] Nested integer arrays

2009-12-05 Thread William Lees
Is it possible to create nested arrays of integers in jmol script language? Here's what I've tried (in the current release version) $ x=[[111,222],[333,444]] $ y=x[1] $ print y 111 222 $ print y[1] 1 I can't really work out why y[1] is 1 and not 111 but I think it must have something to do with