Re: [Jmol-users] for loop

2014-01-29 Thread Robert Hanson
each of these isosurfaces is going to need its own ID. I would recommend using DRAW rather than ISOSURFACE here. for (var i IN {_P}) { isosurface ID @{"i"+i.atomIndex} center @i sphere 2.5} better: for (var i IN {_P}) { draw ID @{"d"+i.atomIndex} width 5.0 @i} unless those need to be meshes.

Re: [Jmol-users] for loop question

2008-01-24 Thread Frieda Reichsman
Thanks, Bob and Eric! - works very well. Frieda On Jan 22, 2008, at 7:59 AM, [EMAIL PROTECTED] wrote: At 1/21/08, you wrote: Can a for loop in Jmol take two variables, as follows? for ( var i = -9, j = 2; i < -4.0; i = i + 0.2, j = j + 1 ) no, can't do that. Eric's solution is what yo

Re: [Jmol-users] for loop question

2008-01-22 Thread hansonr
> At 1/21/08, you wrote: >>Can a for loop in Jmol take two variables, as follows? >> >>for ( var i = -9, j = 2; i < -4.0; i = i + 0.2, j = j + 1 ) >> no, can't do that. Eric's solution is what you need to do, although it should read: var j = 2; for (var i = -9; i < -4.0; i = i + 0.2); # do y

Re: [Jmol-users] for loop question

2008-01-21 Thread Eric Martz
At 1/21/08, you wrote: >Can a for loop in Jmol take two variables, as follows? > >for ( var i = -9, j = 2; i < -4.0; i = i + 0.2, j = j + 1 ) > >So far I have not had success, j seems to have no value where as i is >working fine. What would be wrong with this: var j = 2; for (var i = -9; i <