Hi, I've recently switched over from Windows 8 to Ubuntu and the following
code doesn't seem to work on Ubuntu:
name = "/home/fuse809/Documents/images/Work0000.png";
nFrames = 40;
nDegrees =9 ;
thisFrame = 0;
width = 800;
height = 512;
set zoomLarge false;
message loop;
thisFrame = thisFrame + 1;
fileName = name.replace("0000","" + ("0000" + thisFrame)[-4][0]);
rotate y @ndegrees;
frame next; # only use this if you have a multiframe file.
refresh;
write image @width @height @fileName;
if (thisFrame < nFrames);goto loop;endif;
background white;##
Even though the equivalent code (i.e. with the folder location of the
output file "Work0000.png") works just fine in Windows 8. See this is the
solution I came up with for my animation problem; I was hoping to create a
gif file just using Jmol's inbuilt functions but it didn't work for me so I
decided to just create a heap of PNG files with a small angle change
between them and use that to create a GIF file, by means of the software
PhotoScape. If you can provide me an equivalent code for creating a GIF
file with 40 or so frames (but the no of frames being provided by the user,
i.e. me) I'd appreciate that even more!
Thanks for your time,
Brenton
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos. Get
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users