I think that is better done:

for (var thisFrame  = 1; thisFrame <= nFframes; thisFrame++) {
fileName = name.replace("0000","" + ("0000" + thisFrame)[-4][0]);
rotate y @ndegrees;
frame next;
refresh;
if (thisFrame < nFrames);goto loop;endif; ##




On Wed, Oct 15, 2014 at 6:08 AM, Robert Hanson <[email protected]> wrote:

> When you use variables in commands that take a variety of parameters you
> need to prefix it with @:
>
> maxTime = 5;
> capture "myfile.gif" @maxTime transparent
>
> ​
>



-- 
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
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to