Hi,
Thanks for the response to my previous post (see below)! I THOUGHT that
might be the case however when I change the script, nothing results. It's a
bit of a puzzle. As soon as I get to this loop, the program stops. When I
check it with the script editor, the "zoom scale" is highlighted in red and
prompts me with an "invalid argument" comment. When I change this to "zoom
$scale", the code passes muster but still doesn't do anything.
I have jmol-11.9.7 running on a macbook pro using 10.6.1, if that matters.
In advance, thanks!
-----current code for zoom that doesn't work-----
for (var j=1; j<20; j=j+1)
var scale=5*j;
zoom scale;
write image 800 600 @{"movie" + ("0000"+j)[-3][0] + ".jpg"};
end for
-----------or---------
for (var j=1; j<20; j=j+1)
var scale=5*j;
zoom $scale;
write image 800 600 @{"movie" + ("0000"+j)[-3][0] + ".jpg"};
end for
----------------------
Paul
------Previous response----
in the math itself you just use variables names. $xx would be an identifier for
a drawn object or isosurface and would not be appropriate in that context.
for (var j=1; j<20; j=j+1)
var scale=5*j;
zoom scale;
write image 800 600 @{"movie" + ("0000"+j)[-3][0] + ".jpg"};
end for
On Thu, Dec 3, 2009 at 7:59 PM, Paulo <[email protected]> wrote:
Hi,
I've been trying to make this work but the program doesn't seem to do
anything when I run it. What I'm trying to do is write a series of images that
zoom into a structure. Suggestions?
-------------------------------
for (var j=1; j<20; j=j+1)
scale=5*$j;
zoom $scale;
write image 800 600 @{"movie" + ("0000"+j)[-3][0] + ".jpg"};
end for
-----------------------------
In advance, thanks!
Paul
All the best,
Paul Hanson, Ph.D.
[email protected]
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users