I am also having trouble with a simple, previously successful for loop in the 
Java app:

function testWrite
  for(var i=1; i < 11; i++) 
        x = script("script 'rotate x 1;  write file PNG anim01/1_anim' +  i + 
'.png;'") 
  end for
end function

The Java app tells me:

script compiler ERROR: command expected
----
          >>>>   for(var i=1 <<<<
$ 

Sorry to ask more than one thing at a time, but since they both involve for 
loops I thought they might be related.


On Apr 21, 2014, at 10:46 AM, Frieda Reichsman <[email protected]> wrote:

> Oh yeah— I’m using Jmol 14.0.13.
> 
> On Apr 21, 2014, at 10:42 AM, Frieda Reichsman <[email protected]> wrote:
> 
>> Hi Bob,
>> 
>> The following works for “growing” spacefill when I use the signed applet, 
>> but not when I use JSMol:
>> 
>> function off2cpk
>> delay 0.1
>>   set hermiteLevel 0
>> 
>>   for ( var i=0; i<91; i = i + 5 )
>>      x = script("cpk " + i + "%; delay 1; refresh;") 
>>   end for
>> 
>>   set hermitelevel 4
>> delay 0.1
>> end function
>> 
>> 
>> 
>> Do I need to be doing something differently here?
>> 
>> Frieda
>> 
>> 
>> ///////////////////////////////////////////
>> 
>> Frieda Reichsman
>> Molecules in Motion
>> Interactive Molecular Structures
>> http://www.moleculesinmotion.com
>> 
>> ///////////////////////////////////////////
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> Start Your Social Network Today - Download eXo Platform
>> Build your Enterprise Intranet with eXo Platform Software
>> Java Based Open Source Intranet - Social, Extensible, Cloud Ready
>> Get Started Now And Turn Your Intranet Into A Collaboration Platform
>> http://p.sf.net/sfu/ExoPlatform_______________________________________________
>> Jmol-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
> 

------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to